{"id":18648695,"url":"https://github.com/eaimty/register-count","last_synced_at":"2025-04-11T14:31:16.794Z","repository":{"id":65600076,"uuid":"595494091","full_name":"EAimTY/register-count","owner":"EAimTY","description":"Counting `Register`s created by a `Counter`","archived":false,"fork":false,"pushed_at":"2023-01-31T07:38:43.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T14:43:46.094Z","etag":null,"topics":[],"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/EAimTY.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}},"created_at":"2023-01-31T07:36:22.000Z","updated_at":"2023-07-25T15:07:06.000Z","dependencies_parsed_at":"2023-02-16T17:01:17.553Z","dependency_job_id":null,"html_url":"https://github.com/EAimTY/register-count","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/EAimTY%2Fregister-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fregister-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fregister-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EAimTY%2Fregister-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EAimTY","download_url":"https://codeload.github.com/EAimTY/register-count/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248419680,"owners_count":21100223,"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-11-07T06:33:24.653Z","updated_at":"2025-04-11T14:31:12.981Z","avatar_url":"https://github.com/EAimTY.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# register-count\n\nCounting `Register`s created by a `Counter`\n\n[![Version](https://img.shields.io/crates/v/register-count.svg?style=flat)](https://crates.io/crates/register-count)\n[![Documentation](https://img.shields.io/badge/docs-release-brightgreen.svg?style=flat)](https://docs.rs/register-count)\n[![License](https://img.shields.io/crates/l/register-count.svg?style=flat)](https://github.com/EAimTY/register-count/blob/master/LICENSE)\n\n## Usage\n\nThis crate helps you to count the number of currently un-dropped `Register`s created by a `Counter`.\n\n```rust\nuse register_count::Counter;\n\nlet cnt = Counter::new();\nprintln!(\"Number of registers: {}\", cnt.count()); // 0\nlet reg1 = cnt.reg();\nprintln!(\"Number of registers: {}\", cnt.count()); // 1\nlet reg2 = reg1.clone();\nprintln!(\"Number of registers: {}\", cnt.count()); // 2\ndrop(reg1);\nprintln!(\"Number of registers: {}\", cnt.count()); // 1\n```\n\n## `no_std`\n\nOpt-out of the default features to use this crate in `no_std` environments.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Fregister-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feaimty%2Fregister-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feaimty%2Fregister-count/lists"}