pub enum PushResult<T, const N: usize> {
Full([T; N]),
NotFull(ArrayBuilder<T, N>),
}
Expand description
The result of pushing to an ArrayBuilder
. If the push resulted in a
full array, the array is returned directly; otherwise, the builder is
returned with updated state. See ArrayBuilder
for details and examples.
Variants§
Full([T; N])
NotFull(ArrayBuilder<T, N>)
Trait Implementations§
Source§impl<T: Clone, const N: usize> Clone for PushResult<T, N>
impl<T: Clone, const N: usize> Clone for PushResult<T, N>
Source§fn clone(&self) -> PushResult<T, N>
fn clone(&self) -> PushResult<T, N>
Returns a copy 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 N: usize> Freeze for PushResult<T, N>where
T: Freeze,
impl<T, const N: usize> RefUnwindSafe for PushResult<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for PushResult<T, N>where
T: Send,
impl<T, const N: usize> Sync for PushResult<T, N>where
T: Sync,
impl<T, const N: usize> Unpin for PushResult<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for PushResult<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