Crates.io | minsize |
lib.rs | minsize |
version | 0.1.2 |
source | src |
created_at | 2021-07-30 19:02:24.302394 |
updated_at | 2022-11-04 18:46:31.145916 |
description | Collections with a statically known minimum size (using const generics) |
homepage | |
repository | https://github.com/elomatreb/minsize |
max_upload_size | |
id | 429397 |
size | 42,784 |
minsize
Collections with a statically known minimum size, using const generics.
Vec
that enforces an arbitrary minimum size
Vec
With the basic first level of const generics support (historically known as min_const_generics
), it is not possible to guarante the non-empty property for all const-generic values.
This crate uses an indirection through a trait, that for now is implemented by hand for a small number of useful values.
Once the necessary language features are stabilized, this list of manual implementations will be replaced with a proper blanket implementation.
serde
: Add implementations for the serde
traitsLicensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.