[][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)Mut(&'a mut T)

Trait Implementations

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

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

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

impl<'a, T> AsMut<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]

Auto Trait Implementations

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

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

Blanket Implementations

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

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

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.

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

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

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