StorageAccess

Trait StorageAccess 

Source
pub trait StorageAccess<T> {
    // Required methods
    fn as_borrowed(&self) -> &T;
    fn into_taken(self) -> T;
}
Expand description

A trait for borrowing and taking data.

Required Methods§

Source

fn as_borrowed(&self) -> &T

Borrows the value.

Source

fn into_taken(self) -> T

Takes the value.

Implementations on Foreign Types§

Source§

impl<T> StorageAccess<T> for SendWrapper<T>

Source§

fn as_borrowed(&self) -> &T

Source§

fn into_taken(self) -> T

Implementors§

Source§

impl<T> StorageAccess<T> for T