array-append
array-append exports a small family of functions for working with
const-generic array types:
concatwhich concatenates two arrayspush_rightandpush_leftwhich add an element to the end or beginning of an array respectivelysplitandsplit_endwhich split an array into two arrayspop_rightandpop_leftwhich separate the last or first element respectively from an array
And a few aliases:
push/popforpush_right/pop_rightrespectivelyunshift/shiftforpush_left/pop_leftrespectively
This library requires a nightly compiler due to the use of
#![feature(generic_const_exprs)]. All unsafe code has been verified to be
sound by manual proof and Miri.
This library does not yet require the standard library, but it is brought in
anyway unless the std default feature is disabled. This is for
forward-compatibility in case std-dependent code is ever added.
Example
Create a no-alloc builder:
use push;
>
}
assert_eq!;