[][src]Struct mtots::Handle

pub struct Handle<T>(_, _)
where
    T: Any
;

Implementations

impl<T> Handle<T> where
    T: Any
[src]

pub fn borrow(&self) -> Ref<'_, T>[src]

pub fn borrow_mut(&self) -> RefMut<'_, T>[src]

pub fn try_unwrap(self) -> Result<T, Handle<T>>[src]

Tries to take ownership of the underlying T value. Returns Ok(T) on success, Returns Err(Self) on failure A failure may happen if there are still other references to the data

pub fn unwrap(self) -> Result<T, Error>[src]

impl<T> Handle<T> where
    T: Clone + Any
[src]

pub fn unwrap_or_clone(self) -> T[src]

Trait Implementations

impl<T> From<Handle<T>> for Value where
    T: Any
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Handle<T>

impl<T> !Send for Handle<T>

impl<T> !Sync for Handle<T>

impl<T> Unpin for Handle<T> where
    T: Unpin

impl<T> !UnwindSafe for Handle<T>

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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<V, T> VZip<V> for T where
    V: MultiLane<T>,