{"id":16936443,"url":"https://github.com/jonhoo/arrav","last_synced_at":"2025-03-17T07:32:29.733Z","repository":{"id":57493927,"uuid":"253092645","full_name":"jonhoo/arrav","owner":"jonhoo","description":"A sentinel-based, heapless, `Vec`-like type.","archived":false,"fork":false,"pushed_at":"2020-04-07T00:32:55.000Z","size":75,"stargazers_count":68,"open_issues_count":0,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-14T20:56:58.759Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonhoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-04T20:27:53.000Z","updated_at":"2023-10-08T08:35:14.000Z","dependencies_parsed_at":"2022-09-02T01:40:25.969Z","dependency_job_id":null,"html_url":"https://github.com/jonhoo/arrav","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Farrav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Farrav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Farrav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonhoo%2Farrav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonhoo","download_url":"https://codeload.github.com/jonhoo/arrav/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221674281,"owners_count":16861808,"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-13T20:56:58.909Z","updated_at":"2024-10-27T12:16:07.399Z","avatar_url":"https://github.com/jonhoo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Crates.io](https://img.shields.io/crates/v/arrav.svg)](https://crates.io/crates/arrav)\n[![Documentation](https://docs.rs/arrav/badge.svg)](https://docs.rs/arrav/)\n[![Build Status](https://dev.azure.com/jonhoo/jonhoo/_apis/build/status/arrav?branchName=master)](https://dev.azure.com/jonhoo/jonhoo/_build/latest?definitionId=21\u0026branchName=master)\n[![Codecov](https://codecov.io/github/jonhoo/arrav/coverage.svg?branch=master)](https://codecov.io/gh/jonhoo/arrav)\n\nA sentinel-based, heapless, `Vec`-like type.\n\nArrays are great, because they do not require allocation.\nBut arrays are fixed-size.\n\nSlices are great, because you can make them smaller.\nBut slices aren't `Sized`.\n\nVectors are great, because you can make them bigger.\nBut vectors require allocation.\n\nThis type provides a type that acts like a vector but is represented\nexactly like an array. Unlike other array-backed vector-like types, but\nlike C-style strings and arrays, `Arrav` uses a sentinel value to\nindicate unoccupied elements. This makes `push` and `pop` a little\nslower, but avoids having to store the length separately. The trade-off\nis that the sentinel value can no longer be stored in the array.\n\n`Arrav` is intended for when you have a _small_ but variable number of\n_small_ values that you want to store compactly (e.g., because they're\ngoing to be stored in a large number of elements). This is also why the\n\"search\" for the sentinel value to determine the array's length (and\nthus for `push` and `pop`) is unlikely to matter in practice.\n\nUnlike C-style strings and arrays, which use `NULL` as the sentinel,\n`Arrav` uses the _max_ value of the type (like `std::u8::MAX`). This\nmeans that unless you are saturating the type's range, you won't even\nnotice the sentinel.\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Farrav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonhoo%2Farrav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonhoo%2Farrav/lists"}