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
fn as_borrowed(&self) -> &T
Borrows the value.
fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.