pub struct Bindings(/* private fields */);
Expand description
Context bindings.
Implementations§
Source§impl Bindings
impl Bindings
pub fn insert( &mut self, key: Key, def: Nullable<TermDefinition>, ) -> Option<Nullable<TermDefinition>>
Source§impl Bindings
impl Bindings
pub fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, key: &Key) -> Option<Nullable<&TermDefinition>>
pub fn get_entry(&self, i: usize) -> Option<(&Key, Nullable<&TermDefinition>)>
pub fn iter(&self) -> BindingsIter<'_> ⓘ
pub fn insert_with( &mut self, key: Key, def: Nullable<TermDefinition>, ) -> Option<Nullable<TermDefinition>>
Trait Implementations§
Source§impl FromIterator<(Key, Nullable<TermDefinition>)> for Bindings
impl FromIterator<(Key, Nullable<TermDefinition>)> for Bindings
Source§fn from_iter<T: IntoIterator<Item = (Key, Nullable<TermDefinition>)>>(
iter: T,
) -> Self
fn from_iter<T: IntoIterator<Item = (Key, Nullable<TermDefinition>)>>( iter: T, ) -> Self
Creates a value from an iterator. Read more
Source§impl IntoIterator for Bindings
impl IntoIterator for Bindings
impl Eq for Bindings
impl StructuralPartialEq for Bindings
Auto Trait Implementations§
impl Freeze for Bindings
impl RefUnwindSafe for Bindings
impl Send for Bindings
impl Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.