Struct ipld_amt::ValueMut[][src]

pub struct ValueMut<'a, V> { /* fields omitted */ }

A wrapper around a mutable reference to a value in an Amt. Keeps track of whether the value was mutated by setting a flag when DerefMut::deref_mut is called.

Implementations

impl<'a, V> ValueMut<'a, V>[src]

pub fn new(value: &'a mut V) -> Self[src]

pub fn value_changed(&self) -> bool[src]

Trait Implementations

impl<V> Deref for ValueMut<'_, V>[src]

type Target = V

The resulting type after dereferencing.

impl<V> DerefMut for ValueMut<'_, V>[src]

Auto Trait Implementations

impl<'a, V> RefUnwindSafe for ValueMut<'a, V> where
    V: RefUnwindSafe

impl<'a, V> Send for ValueMut<'a, V> where
    V: Send

impl<'a, V> Sync for ValueMut<'a, V> where
    V: Sync

impl<'a, V> Unpin for ValueMut<'a, V>

impl<'a, V> !UnwindSafe for ValueMut<'a, V>

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