[][src]Struct restor::DynamicStorage

pub struct DynamicStorage { /* fields omitted */ }

Methods

impl BlackBox[src]

pub fn new() -> Self[src]

pub fn allocate_for<T: 'static>(&mut self)[src]

pub fn insert<T: 'static>(&self, data: T) -> Option<(T, ErrorDesc)>[src]

pub fn insert_many<T: 'static>(
    &self,
    data: Vec<T>
) -> Option<(Vec<T>, ErrorDesc)>
[src]

pub fn get<T: 'static>(&self) -> Result<Ref<T>, ErrorDesc>[src]

pub fn ind<T: 'static>(&self, ind: usize) -> Result<Ref<T>, ErrorDesc>[src]

pub fn get_mut<T: 'static>(&self) -> Result<RefMut<T>, ErrorDesc>[src]

pub fn ind_mut<T: 'static>(&self, ind: usize) -> Result<RefMut<T>, ErrorDesc>[src]

pub fn extract<T: 'static>(&self) -> Result<T, ErrorDesc>[src]

pub fn extract_many<T: 'static>(&self) -> Result<Box<[T]>, ErrorDesc>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.