Struct microkelvin::Annotated [−][src]
pub struct Annotated<C, A>(_, _);
A wrapper type that keeps the annotation of the Compound referenced cached
Implementations
impl<C, A> Annotated<C, A> where
C: Compound<A>,
A: Annotation<C::Leaf>,
[src]
impl<C, A> Annotated<C, A> where
C: Compound<A>,
A: Annotation<C::Leaf>,
[src]pub fn new(compound: C) -> Self where
A: Combine<C, A>,
[src]
A: Combine<C, A>,
Create a new annotated type
pub fn annotation(&self) -> &A
[src]
Returns a reference to to the annotation stored
pub fn val(&self) -> Result<AnnRef<'_, C, A>, CanonError>
[src]
Returns an annotated reference to the underlying type
pub fn val_mut(&mut self) -> Result<AnnRefMut<'_, C, A>, CanonError> where
A: Combine<C, A>,
[src]
A: Combine<C, A>,
Returns a Mutable annotated reference to the underlying type
Trait Implementations
Auto Trait Implementations
impl<C, A> !RefUnwindSafe for Annotated<C, A>
impl<C, A> !RefUnwindSafe for Annotated<C, A>
impl<C, A> UnwindSafe for Annotated<C, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, A> UnwindSafe for Annotated<C, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,