pub struct IndexedMap { /* private fields */ }
Implementations§
Source§impl IndexedMap
impl IndexedMap
pub fn new() -> Self
pub fn insert(&mut self, key: RcStr, val: Val) -> u32
pub fn set_by_index(&mut self, i: u32, val: Val)
pub fn get_by_key(&self, key: &RcStr) -> Option<&Val>
pub fn get_by_index(&self, i: u32) -> Option<&Val>
pub fn get_key(&self, index: u32) -> Option<&RcStr>
pub fn len(&self) -> usize
Auto Trait Implementations§
impl Freeze for IndexedMap
impl !RefUnwindSafe for IndexedMap
impl !Send for IndexedMap
impl !Sync for IndexedMap
impl Unpin for IndexedMap
impl !UnwindSafe for IndexedMap
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