[−][src]Struct restor::DynamicStorage
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]
&self,
data: Vec<T>
) -> Option<(Vec<T>, ErrorDesc)>
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
impl !Send for DynamicStorage
impl !Sync for DynamicStorage
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,