Expand description
Note: the complete list of things not available when using default-features = false
for #![no_std] compatibility is as follows:
StaticVec::sortedStaticVec::into_vec(and the correspondingIntoimpl)StaticVec::from_vec(and the correspondingFromimpl)- the implementation of the
Readtrait forStaticVec - the implementation of the
BufReadtrait forStaticVec - the implementation of the
io::Writetrait forStaticVec - the implementation of
FromforStaticStringfromString - the implementations of
PartialEqandPartialOrdagainstStringforStaticString - the implementation of
ErrorforStringError - the
bounds_to_stringfunction unique to this crate and implemented by several of the iterators in it
Macros
Accepts an array of any primitive
Copy type that has a
PartialOrd implementation, sorts it, and creates a new
StaticVec instance from the result in a fully const context compatible
manner.Creates a new
StaticString from an &str literal. This macro can be used in const contexts,
in keeping with the other ones in this crate.Creates a new
StaticVec from a vec!-style
pseudo-slice. The newly created StaticVec will have a capacity and length
exactly equal to the number of elements in the so-called slice. The “array-like” [value; N]
syntax is also supported, and both forms can be used in const contexts. This macro has no
particular trait impl requirements for the input type.Structs
A priority queue implemented as a binary heap, built around an instance of
StaticVec<T, N>.A sorted “draining” iterator over the elements of a
StaticHeap.A sorted “consuming” iterator over the elements of a
StaticHeap.A struct wrapping a mutable reference to the greatest (or “maximal”) item in a
StaticHeap.A fixed-capacity
String-like struct built around an instance of
StaticVec<u8, N>.A
Vec-like struct (mostly directly API-compatible where it can be)
implemented with const generics around an array of fixed N capacity.A “draining” iterator, analogous to
vec::Drain.
Instances of StaticVecDrain are created
by the drain_iter method on StaticVec,
as while the drain method does have a similar purpose, it works by
immediately returning a new StaticVec as opposed to an iterator.A “consuming” iterator that reads each element out of a source
StaticVec by value.A “splicing” iterator, analogous to
vec::Splice.
Instances of StaticVecSplice are created
by the splice method on StaticVec.Enums
This enum represents several different possible “error states” that may be encountered
while using a
StaticString.