{"id":15498514,"url":"https://github.com/storycraft/type-key","last_synced_at":"2025-06-17T03:36:09.703Z","repository":{"id":182940084,"uuid":"657042247","full_name":"storycraft/type-key","owner":"storycraft","description":"Unique type identifier for any non-static type (unlike `core::any::Any`)","archived":false,"fork":false,"pushed_at":"2023-07-22T03:12:09.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T09:03:04.891Z","etag":null,"topics":["any","rust","typeid"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/storycraft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-06-22T07:31:45.000Z","updated_at":"2023-07-08T18:35:18.000Z","dependencies_parsed_at":"2023-07-22T07:18:46.753Z","dependency_job_id":null,"html_url":"https://github.com/storycraft/type-key","commit_stats":null,"previous_names":["storycraft/type-key"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/storycraft/type-key","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Ftype-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Ftype-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Ftype-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Ftype-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/storycraft","download_url":"https://codeload.github.com/storycraft/type-key/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/storycraft%2Ftype-key/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260286428,"owners_count":22986589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["any","rust","typeid"],"created_at":"2024-10-02T08:45:53.839Z","updated_at":"2025-06-17T03:36:09.680Z","avatar_url":"https://github.com/storycraft.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeKey\nUnique type identifier for any non-static type (unlike `core::any::Any`)\n\n## Usage\n```rust\nuse type_key::TypeKey;\n\nlet a = 1;\nlet closure = || \u0026a;\n\nlet key = TypeKey::of_val(\u0026closure);\n```\n\n## Implementation detail\nThe `TypeKey` wraps `TypeId` of closure in `TypeKey::of`. Since the closure captures its environment, the returned `TypeId` is unique for each type.\n\nFor more explanation about closure lifetime, see: https://github.com/rust-lang/rust/issues/27086\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorycraft%2Ftype-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstorycraft%2Ftype-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstorycraft%2Ftype-key/lists"}