pub struct Map(/* private fields */);
Implementations§
Source§impl Map
impl Map
pub fn new(entries: Vec<(Key, Val)>) -> Self
pub fn clone_from_ref(map: &MapRef<'_>) -> Self
pub fn get<K: AsRef<str>>(&self, key: K) -> Option<&Val>
pub fn into_entries(self) -> ValMapEntries
pub fn into_raw(self) -> *mut ()
pub unsafe fn from_raw(ptr: *mut ()) -> Self
pub fn entries(&self) -> &[(Key, Val)]
pub fn as_ref(&self) -> MapRef<'_>
Trait Implementations§
Source§impl DeepSizeOf for Map
impl DeepSizeOf for Map
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
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 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