pub enum CopyNot<I, O, A: Allocator> {
Copy(Vec<O, A>),
Not(Vec<O, AlignmentCorrectorAllocator<I, O, A>>),
}Expand description
Whether or not a copy occured. Also the copy variant doesn’t have the custom allocator, and is therefore one usize smaller.
Variants§
Auto Trait Implementations§
impl<I, O, A> !Freeze for CopyNot<I, O, A>
impl<I, O, A> RefUnwindSafe for CopyNot<I, O, A>
impl<I, O, A> Send for CopyNot<I, O, A>
impl<I, O, A> Sync for CopyNot<I, O, A>
impl<I, O, A> Unpin for CopyNot<I, O, A>
impl<I, O, A> UnwindSafe for CopyNot<I, O, A>
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