Struct microkelvin::Stored
source · [−]pub struct Stored<T, I> { /* private fields */ }
Expand description
Stored is a reference to a value stored, along with the backing store
Implementations
sourceimpl<T, I> Stored<T, I>
impl<T, I> Stored<T, I>
sourcepub fn new(store: StoreRef<I>, ident: Ident<T, I>) -> Self
pub fn new(store: StoreRef<I>, ident: Ident<T, I>) -> Self
Create a new Stored
wrapper from an identifier and a store
sourcepub fn inner(&self) -> &T::Archived where
T: Archive,
T::Archived: for<'a> CheckBytes<DefaultValidator<'a>>,
pub fn inner(&self) -> &T::Archived where
T: Archive,
T::Archived: for<'a> CheckBytes<DefaultValidator<'a>>,
Get a reference to the inner value being stored
sourcepub fn walk<W, A>(&self, walker: W) -> Option<Branch<'_, T, A, I>> where
T: Compound<A, I>,
T::Archived: ArchivedCompound<T, A, I> + for<'any> CheckBytes<DefaultValidator<'any>>,
T::Leaf: 'static + Archive,
A: Annotation<T::Leaf>,
W: Walker<T, A, I>,
pub fn walk<W, A>(&self, walker: W) -> Option<Branch<'_, T, A, I>> where
T: Compound<A, I>,
T::Archived: ArchivedCompound<T, A, I> + for<'any> CheckBytes<DefaultValidator<'any>>,
T::Leaf: 'static + Archive,
A: Annotation<T::Leaf>,
W: Walker<T, A, I>,
Start a branch walk using the stored T
as the root.
Trait Implementations
impl<T, I> Send for Stored<T, I> where
I: Send,
impl<T, I> Sync for Stored<T, I> where
I: Sync,
Auto Trait Implementations
impl<T, I> !RefUnwindSafe for Stored<T, I>
impl<T, I> Unpin for Stored<T, I> where
I: Unpin,
T: Unpin,
impl<T, I> !UnwindSafe for Stored<T, I>
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more