Enum canonical::ValMut[][src]

pub enum ValMut<'a, T, S> where
    T: Canon<S>,
    S: Store
{ Owned { value: Option<T>, writeback: &'a mut Repr<T, S>, }, Borrowed(&'a mut T), }

A mutable value derived from a Repr

Variants

Owned

An owned instance of T

Fields of Owned

value: Option<T>

The owned value itself, wrapped in an option to be able to move it on drop.

writeback: &'a mut Repr<T, S>

Where to write back the changed value

Borrowed(&'a mut T)

A borrowed instance of T

Trait Implementations

impl<'a, T, S> Deref for ValMut<'a, T, S> where
    T: Canon<S>,
    S: Store
[src]

type Target = T

The resulting type after dereferencing.

impl<'a, T, S> DerefMut for ValMut<'a, T, S> where
    T: Canon<S>,
    S: Store
[src]

impl<'a, T, S> Drop for ValMut<'a, T, S> where
    S: Store,
    T: Canon<S>, 
[src]

Auto Trait Implementations

impl<'a, T, S> RefUnwindSafe for ValMut<'a, T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe,
    <S as Store>::Ident: RefUnwindSafe

impl<'a, T, S> Send for ValMut<'a, T, S> where
    S: Send,
    T: Send,
    <S as Store>::Ident: Send

impl<'a, T, S> Sync for ValMut<'a, T, S> where
    S: Sync,
    T: Sync,
    <S as Store>::Ident: Sync

impl<'a, T, S> Unpin for ValMut<'a, T, S> where
    T: Unpin

impl<'a, T, S> !UnwindSafe for ValMut<'a, T, S>

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, 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.