Struct microkelvin::Stored
source ·
[−]pub struct Stored<T, I> { /* fields omitted */ }
Expand description
Stored is a reference to a value stored, along with the backing store
Implementations
Create a new Stored
wrapper from an identifier and a store
pub 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
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>,
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
Auto Trait Implementations
impl<T, I> !RefUnwindSafe for Stored<T, I>
impl<T, I> !UnwindSafe for Stored<T, I>
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
Gets the layout of the type.