CopyNot

Enum CopyNot 

Source
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§

§

Copy(Vec<O, A>)

Copy occured.

§

Not(Vec<O, AlignmentCorrectorAllocator<I, O, A>>)

There was no copy.

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>
where A: Send, O: Send, I: Send,

§

impl<I, O, A> Sync for CopyNot<I, O, A>
where A: Sync, O: Sync, I: Sync,

§

impl<I, O, A> Unpin for CopyNot<I, O, A>
where A: Unpin, O: Unpin, I: Unpin,

§

impl<I, O, A> UnwindSafe for CopyNot<I, O, A>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.