pub struct Binding { /* private fields */ }Expand description
Immutable binding from variables to values
Implementations§
Source§impl Binding
impl Binding
Sourcepub fn two(var1: Var, val1: Value, var2: Var, val2: Value) -> Self
pub fn two(var1: Var, val1: Value, var2: Var, val2: Value) -> Self
Create binding with two variables
Sourcepub fn with_parent(self, parent: Arc<Binding>) -> Self
pub fn with_parent(self, parent: Arc<Binding>) -> Self
Create binding with parent scope
Sourcepub fn vars(&self) -> impl Iterator<Item = &Var>
pub fn vars(&self) -> impl Iterator<Item = &Var>
Get all variables in this binding (not parent)
Trait Implementations§
impl Eq for Binding
Auto Trait Implementations§
impl Freeze for Binding
impl RefUnwindSafe for Binding
impl Send for Binding
impl Sync for Binding
impl Unpin for Binding
impl UnsafeUnpin for Binding
impl UnwindSafe for Binding
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