Struct ai_kit::core::Bindings
[−]
[src]
pub struct Bindings<T: BindingsValue> { /* fields omitted */ }
Bindings is used for storing variables and operating on variables and their bindings.
Methods
impl<T: BindingsValue> Bindings<T>
[src]
fn new() -> Bindings<T>
fn len(&self) -> usize
fn has_binding(&self, variable: &String) -> bool
fn set_binding(&self, variable: &String, val: T) -> Bindings<T>
fn get_binding(&self, variable: &String) -> Option<T>
fn update_bindings(&self, variable: &String, value: &T) -> Option<Self>
fn merge(&self, other: &Self) -> Self
fn equivalences_string(&self) -> String
Trait Implementations
impl<T: Debug + BindingsValue> Debug for Bindings<T>
[src]
impl<T: Clone + BindingsValue> Clone for Bindings<T>
[src]
fn clone(&self) -> Bindings<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: BindingsValue> PartialEq for Bindings<T>
[src]
fn eq(&self, other: &Bindings<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T: BindingsValue> Eq for Bindings<T>
[src]
impl<T: BindingsValue> Default for Bindings<T>
[src]
impl<T: BindingsValue> FromIterator<(String, T)> for Bindings<T>
[src]
fn from_iter<I: IntoIterator<Item = (String, T)>>(iter: I) -> Bindings<T>
Creates a value from an iterator. Read more
impl<T: BindingsValue> Extend<(String, T)> for Bindings<T>
[src]
fn extend<It>(&mut self, iter: It) where
It: IntoIterator<Item = (String, T)>,
It: IntoIterator<Item = (String, T)>,
Extends a collection with the contents of an iterator. Read more