pub struct VariableMap(/* private fields */);Implementations§
Source§impl VariableMap
impl VariableMap
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn get(&self, key: &Symbol) -> Option<&Variable>
pub fn get_str(&self, key: &str) -> Option<&Variable>
pub fn get_mut(&mut self, key: &Symbol) -> Option<&mut Variable>
pub fn get_key_value(&self, key: &Symbol) -> Option<(&Symbol, &Variable)>
pub fn contains_key(&self, key: &Symbol) -> bool
pub fn contains_key_str(&self, key: &str) -> bool
pub fn remove_str(&mut self, key: &str) -> Option<Variable>
pub fn insert(&mut self, key: Symbol, value: Variable) -> Option<Variable>
pub fn remove(&mut self, key: &Symbol) -> Option<Variable>
pub fn entry(&mut self, key: Symbol) -> Entry<'_>
pub fn iter(&self) -> Iter<'_> ⓘ
pub fn iter_mut(&mut self) -> IterMut<'_>
pub fn keys(&self) -> impl Iterator<Item = &Symbol> + '_
pub fn values(&self) -> impl Iterator<Item = &Variable>
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut Variable>
Source§impl VariableMap
impl VariableMap
Trait Implementations§
Source§impl Clone for VariableMap
impl Clone for VariableMap
Source§fn clone(&self) -> VariableMap
fn clone(&self) -> VariableMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VariableMap
impl Debug for VariableMap
Source§impl Default for VariableMap
impl Default for VariableMap
Source§impl Extend<(HipStr<'static, Rc>, Variable)> for VariableMap
impl Extend<(HipStr<'static, Rc>, Variable)> for VariableMap
Source§fn extend<T: IntoIterator<Item = (Symbol, Variable)>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = (Symbol, Variable)>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<(HipStr<'static, Rc>, Variable)> for VariableMap
impl FromIterator<(HipStr<'static, Rc>, Variable)> for VariableMap
Source§impl IntoIterator for VariableMap
impl IntoIterator for VariableMap
Source§impl<'a> IntoIterator for &'a VariableMap
impl<'a> IntoIterator for &'a VariableMap
Source§impl PartialEq for VariableMap
impl PartialEq for VariableMap
Auto Trait Implementations§
impl !RefUnwindSafe for VariableMap
impl !Send for VariableMap
impl !Sync for VariableMap
impl !UnwindSafe for VariableMap
impl Freeze for VariableMap
impl Unpin for VariableMap
impl UnsafeUnpin for VariableMap
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