[][src]Enum assembly_core::borrow::Oom

pub enum Oom<'a, T> {
    Own(T),
    Mut(&'a mut T),
}

An enum that provides a mutable reference by either owning or borrowing a struct (Own or Mutable)

Variants

Own(T)

An owned reference to T

Mut(&'a mut T)

A mutable reference to T

Trait Implementations

impl<'a, T> AsMut<T> for Oom<'a, T>[src]

impl<'a, T> AsRef<T> for Oom<'a, T>[src]

impl<'a, T> Borrow<T> for Oom<'a, T>[src]

impl<'a, T> BorrowMut<T> for Oom<'a, T>[src]

impl<'a, T> From<&'a mut T> for Oom<'a, T>[src]

impl<'a, T> From<T> for Oom<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Oom<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for Oom<'a, T> where
    T: Send

impl<'a, T> Sync for Oom<'a, T> where
    T: Sync

impl<'a, T> Unpin for Oom<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for Oom<'a, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<A, T> AsBits<T> for A where
    A: AsRef<[T]>,
    T: BitStore + BitRegister, 

impl<A, T> AsBitsMut<T> for A where
    A: AsMut<[T]>,
    T: BitStore + BitRegister, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.