pub struct OMap { /* private fields */ }Expand description
A HashMap for Hatter that preserves insertion order.
Implementations§
Source§impl OMap
impl OMap
pub fn new() -> OMap
pub fn len(&self) -> usize
pub fn get<S: Into<Symbol>>(&self, key: S) -> Option<&Value>
pub fn insert<S: Into<Symbol>>(&mut self, key: S, val: Value)
pub fn remove<S: Into<Symbol>>(&mut self, key: S)
pub fn iter(&self) -> impl Iterator<Item = (&Symbol, &Value)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OMap
impl !RefUnwindSafe for OMap
impl !Send for OMap
impl !Sync for OMap
impl Unpin for OMap
impl !UnwindSafe for OMap
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