pub struct Array<T, const N: usize> { /* private fields */ }
Implementations§
Source§impl<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> ⓘ
pub fn iter(&self, strict: bool) -> ArrayIterator<'_, T, N> ⓘ
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> !Freeze for Array<T, N>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more