pub enum Value<'v, '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: 'v> Eq for Value<'v, 's>
Source§impl<'v, 's: 'v> Ord for Value<'v, 's>
impl<'v, 's: 'v> Ord for Value<'v, 's>
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: 'v> PartialOrd for Value<'v, 's>
impl<'v, 's: 'v> PartialOrd for Value<'v, 's>
impl<'v, 's: 'v> StructuralPartialEq for Value<'v, 's>
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