Struct preserves::value::repr::AnnotatedValue
source · pub struct AnnotatedValue<N: NestedValue>(pub Annotations<N>, pub Value<N>);
Expand description
A possibly-annotated Value, with annotations (themselves possibly-annotated) in order of appearance.
Tuple Fields§
§0: Annotations<N>
§1: Value<N>
Trait Implementations§
source§impl<N: Clone + NestedValue> Clone for AnnotatedValue<N>
impl<N: Clone + NestedValue> Clone for AnnotatedValue<N>
source§fn clone(&self) -> AnnotatedValue<N>
fn clone(&self) -> AnnotatedValue<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N: NestedValue> Hash for AnnotatedValue<N>
impl<N: NestedValue> Hash for AnnotatedValue<N>
source§impl<N: NestedValue> Ord for AnnotatedValue<N>
impl<N: NestedValue> Ord for AnnotatedValue<N>
source§impl<N: NestedValue> PartialEq for AnnotatedValue<N>
impl<N: NestedValue> PartialEq for AnnotatedValue<N>
source§impl<N: NestedValue> PartialOrd for AnnotatedValue<N>
impl<N: NestedValue> PartialOrd for AnnotatedValue<N>
1.0.0 · source§fn 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 moreimpl<N: NestedValue> Eq for AnnotatedValue<N>
Auto Trait Implementations§
impl<N> Freeze for AnnotatedValue<N>
impl<N> RefUnwindSafe for AnnotatedValue<N>
impl<N> Send for AnnotatedValue<N>
impl<N> Sync for AnnotatedValue<N>
impl<N> Unpin for AnnotatedValue<N>
impl<N> UnwindSafe for AnnotatedValue<N>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more