pub struct Array<T, const N: usize> { /* private fields */ }
Implementations
sourceimpl<T, const N: usize> Array<T, N>
impl<T, const N: usize> Array<T, N>
pub const fn new() -> Self
pub const fn capacity(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn clear(&mut self)
sourcepub fn iter(&self, strict: bool) -> ArrayIterator<'_, T, N>ⓘNotable traits for ArrayIterator<'a, T, N>impl<'a, T, const N: usize> Iterator for ArrayIterator<'a, T, N> type Item = Ref<'a, T>;
pub fn iter(&self, strict: bool) -> ArrayIterator<'_, T, N>ⓘNotable traits for ArrayIterator<'a, T, N>impl<'a, T, const N: usize> Iterator for ArrayIterator<'a, T, N> type Item = Ref<'a, T>;
It will ignore values which is transient if strict is false
Notice: Spin
if strict
Trait Implementations
Auto Trait Implementations
impl<T, const N: usize> !RefUnwindSafe for Array<T, N>
impl<T, const N: usize> Send for Array<T, N> where
T: Send,
impl<T, const N: usize> Sync for Array<T, N> where
T: Sync,
impl<T, const N: usize> Unpin for Array<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Array<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more