pub struct Storage { /* private fields */ }Expand description
Stores custom, user-provided types.
Implementations§
Source§impl Storage
impl Storage
Sourcepub fn store<T: 'static, P: Pipeline>(&mut self, pipeline: P)
pub fn store<T: 'static, P: Pipeline>(&mut self, pipeline: P)
Inserts the data T in to Storage.
Sourcepub fn get<T: 'static>(&self) -> Option<&dyn Any>
pub fn get<T: 'static>(&self) -> Option<&dyn Any>
Returns a reference to the data with type T if it exists in Storage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Storage
impl !RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnsafeUnpin for Storage
impl !UnwindSafe for Storage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more