pub struct MapObj { /* private fields */ }
Implementations§
Source§impl MapObj
impl MapObj
pub fn new() -> MapObj
pub fn with_data(data: HashMap<GosValue, GosValue>) -> MapObj
pub fn insert(&self, key: GosValue, val: GosValue) -> Option<GosValue>
pub fn get(&self, key: &GosValue) -> Option<GosValue>
pub fn delete(&self, key: &GosValue)
pub fn len(&self) -> usize
pub fn borrow_data_mut(&self) -> RefMut<'_, HashMap<GosValue, GosValue>>
pub fn borrow_data(&self) -> Ref<'_, HashMap<GosValue, GosValue>>
pub fn clone_inner(&self) -> RefCell<HashMap<GosValue, GosValue>>
Trait Implementations§
impl Eq for MapObj
Auto Trait Implementations§
impl !Freeze for MapObj
impl !RefUnwindSafe for MapObj
impl !Send for MapObj
impl !Sync for MapObj
impl Unpin for MapObj
impl !UnwindSafe for MapObj
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