pub struct Map { /* private fields */ }Expand description
A dict in insertion order with PyDict_SetItem semantics. Built whole
(ValueBuilder::map, or Map::from_entries for a value a caller
makes), never grown in place.
Implementations§
Source§impl Map
impl Map
Sourcepub fn from_entries(list: ListIx, entries: Vec<(NodeId, Value)>) -> Self
pub fn from_entries(list: ListIx, entries: Vec<(NodeId, Value)>) -> Self
A map a caller builds (a value to write, a test’s), over entries
with distinct keys. Not charged to anything: the reader builds maps
with ValueBuilder::map, which takes a metered vector.
Trait Implementations§
impl Eq for Map
impl StructuralPartialEq for Map
Auto Trait Implementations§
impl !RefUnwindSafe for Map
impl !UnwindSafe for Map
impl Forget for Map
impl Freeze for Map
impl Move for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnsafeUnpin 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