pub struct Annotated<C, A> { /* private fields */ }
Expand description
A child annotated with some metadata.
Annotations are lazily evaluated, with computation triggered when a
reference to them is asked for using anno
.
Implementations
sourceimpl<C, A> Annotated<C, A>where
A: Annotation<C>,
impl<C, A> Annotated<C, A>where
A: Annotation<C>,
Trait Implementations
sourceimpl<C, A> Clone for Annotated<C, A>where
C: Clone,
A: Annotation<C>,
impl<C, A> Clone for Annotated<C, A>where
C: Clone,
A: Annotation<C>,
sourceimpl<C, A> Default for Annotated<C, A>where
C: Default,
A: Annotation<C>,
impl<C, A> Default for Annotated<C, A>where
C: Default,
A: Annotation<C>,
sourceimpl<C, A> From<C> for Annotated<C, A>where
A: Annotation<C>,
impl<C, A> From<C> for Annotated<C, A>where
A: Annotation<C>,
sourceimpl<C, A> Ord for Annotated<C, A>where
C: PartialOrd + Ord,
impl<C, A> Ord for Annotated<C, A>where
C: PartialOrd + Ord,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<C, A> PartialEq<Annotated<C, A>> for Annotated<C, A>where
C: PartialEq,
impl<C, A> PartialEq<Annotated<C, A>> for Annotated<C, A>where
C: PartialEq,
sourceimpl<C, A> PartialOrd<Annotated<C, A>> for Annotated<C, A>where
C: PartialOrd,
impl<C, A> PartialOrd<Annotated<C, A>> for Annotated<C, A>where
C: PartialOrd,
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<C, A> Eq for Annotated<C, A>where
C: PartialEq + Eq,
Auto Trait Implementations
impl<C, A> !RefUnwindSafe for Annotated<C, A>
impl<C, A> Send for Annotated<C, A>where
A: Send,
C: Send,
impl<C, A> !Sync for Annotated<C, A>
impl<C, A> Unpin for Annotated<C, A>where
A: Unpin,
C: Unpin,
impl<C, A> UnwindSafe for Annotated<C, A>where
A: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
sourceimpl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a C> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &&'a C) -> A
fn from_child(t: &&'a C) -> A
Compute the annotation from the child.
sourceimpl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
impl<'a, C, A> Annotation<&'a mut C> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &&'a mut C) -> A
fn from_child(t: &&'a mut C) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Arc<C>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Arc<C>) -> A
fn from_child(t: &Arc<C>) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Box<C, Global>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Box<C, Global>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Box<C, Global>) -> A
fn from_child(t: &Box<C, Global>) -> A
Compute the annotation from the child.
sourceimpl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
impl<C, A> Annotation<Rc<C>> for Awhere
A: Annotation<C>,
sourcefn from_child(t: &Rc<C>) -> A
fn from_child(t: &Rc<C>) -> A
Compute the annotation from the child.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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