Trait StorageAccess

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§

fn as_borrowed(&self) -> &T

Borrows the value.

fn into_taken(self) -> T

Takes the value.

Implementations on Foreign Types§

§

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

§

fn as_borrowed(&self) -> &T

§

fn into_taken(self) -> T

Implementors§

§

impl<T> StorageAccess<T> for T