{"id":16893927,"url":"https://github.com/coolreader18/some-mut","last_synced_at":"2025-09-12T12:35:31.729Z","repository":{"id":153050635,"uuid":"627989677","full_name":"coolreader18/some-mut","owner":"coolreader18","description":"some-mut","archived":false,"fork":false,"pushed_at":"2023-04-14T17:17:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-23T22:15:41.416Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coolreader18.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-04-14T16:44:48.000Z","updated_at":"2023-04-14T16:46:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c79ab66d-9b5c-47e4-9444-5bf3182d1213","html_url":"https://github.com/coolreader18/some-mut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coolreader18/some-mut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolreader18%2Fsome-mut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolreader18%2Fsome-mut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolreader18%2Fsome-mut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolreader18%2Fsome-mut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolreader18","download_url":"https://codeload.github.com/coolreader18/some-mut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolreader18%2Fsome-mut/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274692683,"owners_count":25332371,"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-09-11T02:00:13.660Z","response_time":74,"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":[],"created_at":"2024-10-13T17:16:59.473Z","updated_at":"2025-09-12T12:35:31.703Z","avatar_url":"https://github.com/coolreader18.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `some-mut`\n\nA utility library that mainly lets you access a `Some` and then `take()` it infallibly.\n\nUseful, for example, in a `Future` implementation, when you might re-enter into\na function multiple times and so can't `take()` until a sub-future is `Ready`:\n\n```rust\n// for a theoretical `StreamExt::forward()`/`SinkExt::send_all()` implementation:\nfn poll(mut self: Pin\u003c\u0026mut Self\u003e, cx: \u0026mut Context\u003c'_\u003e) -\u003e Poll\u003cResult\u003c(), Error\u003e\u003e {\n    if let Some(buffered_item) = self.buffered_item.some_mut() {\n        ready!(self.sink.poll_ready(cx))?;\n        self.sink.start_send(buffered_item.take())?;\n    }\n    // ...\n}\n```\n\n## License\n\nThis project is licensed under the MIT license. Please see the\n[LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolreader18%2Fsome-mut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolreader18%2Fsome-mut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolreader18%2Fsome-mut/lists"}