pub struct CaoLangTable { /* private fields */ }Implementations§
Source§impl CaoLangTable
impl CaoLangTable
pub fn with_capacity(size: usize, proxy: AllocProxy) -> Result<Self, MapError>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn from_iter( it: impl Iterator<Item = (Value, Value)>, alloc: AllocProxy, ) -> Result<Self, ExecutionErrorPayload>
pub fn insert( &mut self, key: impl Into<Value>, value: impl Into<Value>, ) -> Result<(), ExecutionErrorPayload>
pub fn remove(&mut self, key: Value) -> Result<(), ExecutionErrorPayload>
pub fn append(&mut self, value: Value) -> Result<(), ExecutionErrorPayload>
pub fn pop(&mut self) -> Result<Value, ExecutionErrorPayload>
pub fn nth_key(&self, i: usize) -> Value
pub fn iter(&self) -> impl Iterator<Item = (&Value, &Value)> + '_
pub fn keys(&self) -> &[Value]
pub fn keys_mut(&mut self) -> &mut [Value]
Methods from Deref<Target = CaoHashMap<Value, Value, AllocProxy>>§
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn contains<Q>(&self, key: &Q) -> bool
Sourcepub unsafe fn contains_with_hint<Q>(&self, h: u64, k: &Q) -> bool
pub unsafe fn contains_with_hint<Q>(&self, h: u64, k: &Q) -> bool
§Safety
Hash must be produced from the key
pub fn get<Q>(&self, key: &Q) -> Option<&V>
Sourcepub unsafe fn get_with_hint<Q>(&self, h: u64, k: &Q) -> Option<&V>
pub unsafe fn get_with_hint<Q>(&self, h: u64, k: &Q) -> Option<&V>
§Safety
Hash must be produced from the key
pub fn capacity(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = (&K, &V)>
Trait Implementations§
Source§impl Clone for CaoLangTable
impl Clone for CaoLangTable
Source§impl Debug for CaoLangTable
impl Debug for CaoLangTable
Source§impl Deref for CaoLangTable
impl Deref for CaoLangTable
Source§impl TryFrom<Value> for &CaoLangTable
impl TryFrom<Value> for &CaoLangTable
Auto Trait Implementations§
impl Freeze for CaoLangTable
impl !RefUnwindSafe for CaoLangTable
impl !Send for CaoLangTable
impl !Sync for CaoLangTable
impl Unpin for CaoLangTable
impl !UnwindSafe for CaoLangTable
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