{"id":16916058,"url":"https://github.com/zesterer/nab","last_synced_at":"2025-03-20T20:54:53.019Z","repository":{"id":66134620,"uuid":"274125733","full_name":"zesterer/nab","owner":"zesterer","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-22T12:04:14.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T18:31:56.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zesterer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-06-22T12:03:47.000Z","updated_at":"2020-06-22T12:04:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"96825da2-9902-4f13-9681-827a251387c7","html_url":"https://github.com/zesterer/nab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesterer%2Fnab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesterer%2Fnab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesterer%2Fnab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zesterer%2Fnab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zesterer","download_url":"https://codeload.github.com/zesterer/nab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244688727,"owners_count":20493864,"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":[],"created_at":"2024-10-13T19:24:32.876Z","updated_at":"2025-03-20T20:54:53.014Z","avatar_url":"https://github.com/zesterer.png","language":"Rust","readme":"# Nab\n\nA macro that makes extracting elements from enum variants simpler.\n\n```rust\nenum Foo {\n    A(i32, bool),\n    B(bool, u64),\n}\n\nlet input = Foo::A(42, false);\nlet output = nab!(input, Foo::A(x, y) =\u003e (x, y));\nassert_eq!(output, Some((42, false)));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzesterer%2Fnab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzesterer%2Fnab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzesterer%2Fnab/lists"}