[][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> AsMut<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> Borrow<T> for Oom<'a, T>[src]

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

Auto Trait Implementations

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> Send for Oom<'a, T> where
    T: Send

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

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

Blanket Implementations

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

impl<T> From<T> for 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, V> SliceConcat<T> for V where
    T: Clone,
    V: Borrow<[T]>, 
[src]

type Output = Vec<T>

🔬 This is a nightly-only experimental API. (slice_concat_trait)

The resulting type after concatenation

impl<S> SliceConcat<str> for S where
    S: Borrow<str>, 
[src]

type Output = String

🔬 This is a nightly-only experimental API. (slice_concat_trait)

The resulting type after concatenation

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]