Enum rust::values::ValueArray
source · pub enum ValueArray {
Primitives(Vec<Primitive>),
Objects(Vec<BTreeMap<String, Primitive>>),
}Expand description
When an array is used, it must be an array of the same type. Arrays are also limited to primitives and objects of primitives
Variants§
Primitives(Vec<Primitive>)
Array of primitives
Objects(Vec<BTreeMap<String, Primitive>>)
Array of objects that may only contain primitives
Trait Implementations§
source§impl Debug for ValueArray
impl Debug for ValueArray
source§impl PartialEq for ValueArray
impl PartialEq for ValueArray
source§fn eq(&self, other: &ValueArray) -> bool
fn eq(&self, other: &ValueArray) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ValueArray
Auto Trait Implementations§
impl Freeze for ValueArray
impl RefUnwindSafe for ValueArray
impl Send for ValueArray
impl Sync for ValueArray
impl Unpin for ValueArray
impl UnwindSafe for ValueArray
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