pub struct FixedArray<T: Copy + Default, const CAP: usize> { /* private fields */ }Expand description
Fixed-capacity array with runtime length up to CAP.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Copy + Default, const CAP: usize> Clone for FixedArray<T, CAP>
impl<T: Clone + Copy + Default, const CAP: usize> Clone for FixedArray<T, CAP>
Source§fn clone(&self) -> FixedArray<T, CAP>
fn clone(&self) -> FixedArray<T, CAP>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, const CAP: usize> Freeze for FixedArray<T, CAP>where
T: Freeze,
impl<T, const CAP: usize> RefUnwindSafe for FixedArray<T, CAP>where
T: RefUnwindSafe,
impl<T, const CAP: usize> Send for FixedArray<T, CAP>where
T: Send,
impl<T, const CAP: usize> Sync for FixedArray<T, CAP>where
T: Sync,
impl<T, const CAP: usize> Unpin for FixedArray<T, CAP>where
T: Unpin,
impl<T, const CAP: usize> UnsafeUnpin for FixedArray<T, CAP>where
T: UnsafeUnpin,
impl<T, const CAP: usize> UnwindSafe for FixedArray<T, CAP>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