Struct microkelvin::Link [−][src]
pub struct Link<C, A> { /* fields omitted */ }
Expand description
The Link struct is an annotated merkle link to a compound type
The link takes care of lazily evaluating the annotation of the inner type, and to load it from memory or backend when needed.
Implementations
Create a new link
Creates a new link from an id and annotation
Returns a reference to to the annotation stored
Gets a reference to the inner compound of the link’
Can fail when trying to fetch data over i/o
Computes the Id of the link
👎 Deprecated since 0.10.0: Please use inner
instead
Please use inner
instead
See doc for inner
Gets a reference to the inner compound of the link’
Can fail when trying to fetch data over i/o
pub fn compound_mut(&mut self) -> Result<LinkCompoundMut<'_, C, A>, CanonError> where
C: Canon,
👎 Deprecated since 0.10.0: Please use inner
instead
pub fn compound_mut(&mut self) -> Result<LinkCompoundMut<'_, C, A>, CanonError> where
C: Canon,
Please use inner
instead
See doc for inner_mut
Returns a Mutable reference to the underlying compound node
Drops cached annotations and ids
Can fail when trying to fetch data over i/o
Trait Implementations
Auto Trait Implementations
impl<C, A> !RefUnwindSafe for Link<C, A>
impl<C, A> UnwindSafe for Link<C, A> where
A: UnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Encode Self
into a buffer