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() -> Bindings
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<'de> Deserialize<'de> for Bindings
impl<'de> Deserialize<'de> for Bindings
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Bindings, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromIterator<(Key, Nullable<TermDefinition>)> for Bindings
impl FromIterator<(Key, Nullable<TermDefinition>)> for Bindings
Source§impl IntoIterator for Bindings
impl IntoIterator for Bindings
Source§impl Serialize for Bindings
impl Serialize for Bindings
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
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.