pub struct ValueMap(pub IndexMap<Value, Value>);
Tuple Fields§
§0: IndexMap<Value, Value>
Implementations§
source§impl ValueMap
impl ValueMap
pub fn new() -> Self
pub fn with_capacity(n: usize) -> Self
pub fn insert(&mut self, k: Value, v: Value) -> Option<Value>
pub fn remove(&mut self, k: &Value) -> Value
pub fn rm(&mut self, k: &Value) -> Value
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl<'de> Deserialize<'de> for ValueMap
impl<'de> Deserialize<'de> for ValueMap
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> IntoIterator for &'a ValueMap
impl<'a> IntoIterator for &'a ValueMap
source§impl<'a> IntoIterator for &'a mut ValueMap
impl<'a> IntoIterator for &'a mut ValueMap
source§impl IntoIterator for ValueMap
impl IntoIterator for ValueMap
source§impl PartialEq for ValueMap
impl PartialEq for ValueMap
impl StructuralPartialEq for ValueMap
Auto Trait Implementations§
impl Freeze for ValueMap
impl RefUnwindSafe for ValueMap
impl Send for ValueMap
impl Sync for ValueMap
impl Unpin for ValueMap
impl UnwindSafe for ValueMap
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