Expand description
Note: the complete list of things not available when using default-features = false
for #![no_std]
compatibility is as follows:
StaticVec::sorted
StaticVec::into_vec
(and the correspondingInto
impl)StaticVec::from_vec
(and the correspondingFrom
impl)- the implementation of the
Read
trait forStaticVec
- the implementation of the
BufRead
trait forStaticVec
- the implementation of the
io::Write
trait forStaticVec
- the implementation of
From
forStaticString
fromString
- the implementations of
PartialEq
andPartialOrd
againstString
forStaticString
- the implementation of
Error
forStringError
- the
bounds_to_string
function 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
.