Module texcraft_stdext::collections::nevec
source · Expand description
A vector type that is statically guaranteed to be non-empty
In situations where a vector is known to have at least 1 element, this
data structure enables writing code without calls to Vec::unwrap
. That is,
it provides a way to statically enforce the invariant.
Structs
- Non-empty vector type.