pub enum Value<'v, 's>where
's: 'v,{
Scalar(Scalar<'v>),
List(Cow<'v, [Scalar<'s>]>),
Keys(Cow<'v, [(Scalar<'s>, Scalar<'s>)]>),
}Variants§
Scalar(Scalar<'v>)
List(Cow<'v, [Scalar<'s>]>)
Keys(Cow<'v, [(Scalar<'s>, Scalar<'s>)]>)
An ordered associative array of key-value pairs
Implementations§
Trait Implementations§
impl<'v, 's> Eq for Value<'v, 's>where
's: 'v,
Source§impl<'v, 's> Ord for Value<'v, 's>where
's: 'v,
impl<'v, 's> Ord for Value<'v, 's>where
's: 'v,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'v, 's> PartialOrd for Value<'v, 's>where
's: 'v,
impl<'v, 's> PartialOrd for Value<'v, 's>where
's: 'v,
impl<'v, 's> StructuralPartialEq for Value<'v, 's>where
's: 'v,
Auto Trait Implementations§
impl<'v, 's> Freeze for Value<'v, 's>
impl<'v, 's> RefUnwindSafe for Value<'v, 's>
impl<'v, 's> Send for Value<'v, 's>
impl<'v, 's> Sync for Value<'v, 's>
impl<'v, 's> Unpin for Value<'v, 's>
impl<'v, 's> UnsafeUnpin for Value<'v, 's>
impl<'v, 's> UnwindSafe for Value<'v, 's>
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