[][src]Struct storaget::DataObject

#[must_use]
pub struct DataObject<'a, T: 'a> { /* fields omitted */ }

Methods

impl<'a, T> DataObject<'a, T> where
    T: StorageMember + Serialize
[src]

pub fn get_ref(self) -> &'a T[src]

pub fn get_ref_mut(self) -> &'a mut T[src]

Deprecated since 0.1.0:

Deprecated function, just for internal test purpose. Please use update instead.

pub fn update<F: 'a, R>(&'a mut self, f: F) -> R where
    F: FnMut(&mut T) -> R, 
[src]

Trait Implementations

impl<'a, T: Debug + 'a> Debug for DataObject<'a, T>[src]

Auto Trait Implementations

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

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

impl<'a, T> Unpin for DataObject<'a, T>

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

impl<'a, T> RefUnwindSafe for DataObject<'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> 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]