pub struct Map(/* private fields */);Expand description
Helper for flexible map construction.
Wraps BTreeMap<Value, Value> and implements From for BTreeMap,
HashMap, slices of key-value pairs, and () (empty map), so that
Value::map can accept all of these through a single Into<Map>
bound. Rarely used directly.
Implementations§
Trait Implementations§
impl Eq for Map
impl StructuralPartialEq for Map
Auto Trait Implementations§
impl Freeze for Map
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnsafeUnpin for Map
impl UnwindSafe for Map
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