logos.lang.array
Module lang · package logos-lang
Types
structArrayIntoIter
struct ArrayIntoIter
Owned-array iterator; yields the elements of [T; N] by value.
Implements: Iterator ExactSizeIterator FusedIterator
Fields
buf: [T; 0]
The array being consumed.
idx: i64
Index of the next element to yield.
Functions
fnarray_from_mut
fn array_from_mut(t: &mut T) -> &mut [T; 1]
Views a single mutable reference as a 1-element mutable array reference.
fnarray_from_ref
fn array_from_ref(t: &T) -> &[T; 1]
Views a single reference as a 1-element array reference (zero-cost pointer reinterpret).
fnarray_into_iter
fn array_into_iter(buf: [T; 0]) -> ArrayIntoIter<T, N>
Converts an owned [T; N] array into an iterator that yields its elements by value.