pub struct TableHandle { /* private fields */ }Implementations§
Source§impl TableHandle
impl TableHandle
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn borrow(&self) -> Ref<'_, HashMap<ValueKey, Value>>
pub fn borrow_mut(&self) -> RefMut<'_, HashMap<ValueKey, Value>>
pub fn contains_key<K>(&self, key: K) -> bool
pub fn get<K>(&self, key: K) -> Option<ValueRef<'_>>
pub fn insert<K>(&self, key: K, value: Value) -> Option<Value>
pub fn remove<K>(&self, key: K) -> Option<Value>
pub fn with_ref<R>(&self, f: impl FnOnce(&HashMap<ValueKey, Value>) -> R) -> R
pub fn with_mut<R>( &self, f: impl FnOnce(&mut HashMap<ValueKey, Value>) -> R, ) -> R
Trait Implementations§
Source§impl Clone for TableHandle
impl Clone for TableHandle
Source§fn clone(&self) -> TableHandle
fn clone(&self) -> TableHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromLustValue for TableHandle
impl FromLustValue for TableHandle
fn from_value(value: Value) -> Result<Self>
fn matches_lust_type(ty: &Type) -> bool
fn type_description() -> &'static str
Source§impl IntoLustValue for TableHandle
impl IntoLustValue for TableHandle
fn into_value(self) -> Value
fn matches_lust_type(ty: &Type) -> bool
fn type_description() -> &'static str
Source§impl IntoTypedValue for TableHandle
impl IntoTypedValue for TableHandle
fn into_typed_value(self) -> TypedValue
Auto Trait Implementations§
impl Freeze for TableHandle
impl !RefUnwindSafe for TableHandle
impl !Send for TableHandle
impl !Sync for TableHandle
impl Unpin for TableHandle
impl !UnwindSafe for TableHandle
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