pub struct Map { /* private fields */ }
Implementations§
Source§impl Map
impl Map
pub fn new() -> Self
pub fn borrow(&self) -> Ref<'_, IndexMap<Key, Value>>
pub fn borrow_mut(&self) -> RefMut<'_, IndexMap<Key, Value>>
pub fn into_inner(self) -> IndexMap<Key, Value>
pub fn to_string_keys(&self) -> Result<HashMap<RcStr, Value>>
pub fn sorted(&self) -> Vec<(Key, Value)>
pub fn generator(map: Rc<Self>) -> NativeGenerator
pub fn unwrap_or_clone(map: Rc<Self>) -> IndexMap<Key, Value>
Trait Implementations§
Source§impl PartialOrd for Map
impl PartialOrd 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