Crate len_trait [−] [src]
This crate generalises traits over the len
and capacity
methods found in most collections.
Methods that are included:
capacity
clear
is_empty
len
reserve_exact
reserve
shrink_to_fit
split_at_mut
split_at
split_off
truncate
with_capacity
Additionally, the traits IndexRanges<Idx>
and IndexRangesMut<Idx>
are provided for
"consistent slicing," i.e. slicing over all range types.
Reexports
pub use capacity::*; |
pub use index::*; |
pub use len::*; |
Modules
capacity |
Traits involving the capacity of a collection. |
index |
Traits involving collections which index over a particular type. |
len |
Traits involving the length of a collection. |