[][src]Struct microkelvin::Annotated

pub struct Annotated<C, S>(_, _)
where
    C: Compound<S>,
    S: Store
;

A wrapper type that keeps the annotation of the Compound referenced cached

Implementations

impl<C, S> Annotated<C, S> where
    C: Compound<S>,
    C::Annotation: Annotation<C, S>,
    S: Store
[src]

pub fn new(compound: C) -> Self[src]

Create a new annotated type

pub fn annotation(&self) -> &C::Annotation[src]

Returns a reference to to the annotation stored

pub fn val(&self) -> Result<AnnRef<'_, C, S>, S::Error>[src]

Returns an annotated reference to the underlying type

pub fn val_mut(&mut self) -> Result<AnnRefMut<'_, C, S>, S::Error>[src]

Returns a Mutable annotated reference to the underlying type

Trait Implementations

impl<C, S> Canon<S> for Annotated<C, S> where
    C: Compound<S>,
    C::Annotation: Canon<S>,
    S: Store
[src]

impl<C: Clone, S: Clone> Clone for Annotated<C, S> where
    C: Compound<S>,
    S: Store,
    C::Annotation: Clone
[src]

impl<C: Debug, S: Debug> Debug for Annotated<C, S> where
    C: Compound<S>,
    S: Store,
    C::Annotation: Debug
[src]

Auto Trait Implementations

impl<C, S> !RefUnwindSafe for Annotated<C, S>

impl<C, S> !Send for Annotated<C, S>

impl<C, S> !Sync for Annotated<C, S>

impl<C, S> Unpin for Annotated<C, S> where
    C: Unpin,
    S: Unpin,
    <C as Compound<S>>::Annotation: Unpin,
    <S as Store>::Ident: Unpin

impl<C, S> UnwindSafe for Annotated<C, S> where
    C: RefUnwindSafe + UnwindSafe,
    S: UnwindSafe,
    <C as Compound<S>>::Annotation: UnwindSafe,
    <S as Store>::Ident: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.