{"id":15295150,"url":"https://github.com/a4-tacks/rust-enum_variant_eq","last_synced_at":"2026-02-11T13:32:25.295Z","repository":{"id":147013626,"uuid":"618415970","full_name":"A4-Tacks/rust-enum_variant_eq","owner":"A4-Tacks","description":"Determining that enumerations only have Variant equal","archived":false,"fork":false,"pushed_at":"2023-03-24T15:32:17.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T08:57:33.834Z","etag":null,"topics":["rust","rust-lang","rust-library","rust-macro"],"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/A4-Tacks.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-24T12:24:04.000Z","updated_at":"2024-09-27T08:18:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba820239-5b86-4661-9ab4-0c4581c87d89","html_url":"https://github.com/A4-Tacks/rust-enum_variant_eq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/A4-Tacks/rust-enum_variant_eq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A4-Tacks%2Frust-enum_variant_eq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A4-Tacks%2Frust-enum_variant_eq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A4-Tacks%2Frust-enum_variant_eq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A4-Tacks%2Frust-enum_variant_eq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/A4-Tacks","download_url":"https://codeload.github.com/A4-Tacks/rust-enum_variant_eq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/A4-Tacks%2Frust-enum_variant_eq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272619562,"owners_count":24965416,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["rust","rust-lang","rust-library","rust-macro"],"created_at":"2024-09-30T17:08:48.494Z","updated_at":"2026-02-11T13:32:25.260Z","avatar_url":"https://github.com/A4-Tacks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Determining that enumerations only have Variant equal\n\n# Examples\n```rust\nuse enum_variant_eq::{*,enum_variant_eq_derive::*};\n\n#[derive(Debug, EnumVariantEq)]\nenum TestEnum {\n    Unit,\n    EmptyUnNamed(),\n    UnNamed(i8),\n    UnNamed2(i8, u8),\n    EmptyNamed {},\n    Named { x: i8 },\n    Named2 { x: i8, y: u8 },\n}\nuse TestEnum::*;\nassert!(Unit.enum_variant_eq(\u0026Unit));\nassert!(UnNamed(5).enum_variant_eq(\u0026UnNamed(8)));\nassert!(Named { x: 5 }.enum_variant_eq(\u0026Named { x: 8 }));\n```\n\n# Errors\n`EnumVariantEq` only applies to enumerations. If it is violated, the compilation will panic\n```rust\n#[derive(Debug, EnumVariantEq)]\nstruct S;\n```\n```\nerror: #[derive(Debug, EnumVariantEq)]\n    |                  ^^^^^^^^^^^^^\n    = help: message: Type Is Not Enum\n```\n\n# Other:\n`Build Ast Error`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa4-tacks%2Frust-enum_variant_eq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa4-tacks%2Frust-enum_variant_eq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa4-tacks%2Frust-enum_variant_eq/lists"}