{"id":17041899,"url":"https://github.com/cloudhead/nonempty","last_synced_at":"2025-04-08T02:38:45.442Z","repository":{"id":41284373,"uuid":"220284960","full_name":"cloudhead/nonempty","owner":"cloudhead","description":"Correct by construction non-empty list","archived":false,"fork":false,"pushed_at":"2025-01-13T09:52:09.000Z","size":80,"stargazers_count":61,"open_issues_count":9,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T01:37:54.664Z","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/cloudhead.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-11-07T16:49:03.000Z","updated_at":"2025-03-07T03:14:17.000Z","dependencies_parsed_at":"2024-03-07T16:25:42.355Z","dependency_job_id":"efbb943a-6310-4974-9b7a-73e714f2bf16","html_url":"https://github.com/cloudhead/nonempty","commit_stats":{"total_commits":78,"total_committers":16,"mean_commits":4.875,"dds":0.5641025641025641,"last_synced_commit":"4b255e7ce84a5bd880170a130e99ab4d87a473bb"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fnonempty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fnonempty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fnonempty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudhead%2Fnonempty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudhead","download_url":"https://codeload.github.com/cloudhead/nonempty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247766869,"owners_count":20992536,"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-14T09:14:05.069Z","updated_at":"2025-04-08T02:38:45.418Z","avatar_url":"https://github.com/cloudhead.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Correct by Construction Non-Empty List\n\nThis package exposes a type `NonEmpty\u003cT\u003e` with a data representation\nthat guarantees non-emptiness statically:\n\n    struct NonEmpty\u003cT\u003e(T, Vec\u003cT\u003e)\n\nThe library is meant to have an interface similar to `std::vec::Vec`:\n\n    use nonempty::NonEmpty;\n\n    let mut l = NonEmpty::new(42);\n\n    assert_eq!(l.first(), \u002642);\n\n    l.push(36);\n    l.push(58);\n\n    let v: Vec\u003ci32\u003e = l.into();\n    assert_eq!(v, vec![42, 36, 58]);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fnonempty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudhead%2Fnonempty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudhead%2Fnonempty/lists"}