pub struct Binding<'a, I: SemanticContextInstruction, E: ExtendedExpression<I>> {
pub name: ValueName<'a>,
pub value: Box<Expression<'a, I, E>>,
}
Expand description
Binding
binding element of AST. Basic entity
for values
re-declaration, to bind new values for already
declared values.
Fields§
§name: ValueName<'a>
Binding value name
value: Box<Expression<'a, I, E>>
Value expression as result of binding
Trait Implementations§
Source§impl<'a, I: Clone + SemanticContextInstruction, E: Clone + ExtendedExpression<I>> Clone for Binding<'a, I, E>
impl<'a, I: Clone + SemanticContextInstruction, E: Clone + ExtendedExpression<I>> Clone for Binding<'a, I, E>
Source§impl<'a, I: Debug + SemanticContextInstruction, E: Debug + ExtendedExpression<I>> Debug for Binding<'a, I, E>
impl<'a, I: Debug + SemanticContextInstruction, E: Debug + ExtendedExpression<I>> Debug for Binding<'a, I, E>
Source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<Binding<'_, I, E>> for Binding
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<Binding<'_, I, E>> for Binding
Source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetLocation for Binding<'_, I, E>
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetLocation for Binding<'_, I, E>
fn location(&self) -> CodeLocation
Source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetName for Binding<'_, I, E>
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetName for Binding<'_, I, E>
Source§impl<'a, I: PartialEq + SemanticContextInstruction, E: PartialEq + ExtendedExpression<I>> PartialEq for Binding<'a, I, E>
impl<'a, I: PartialEq + SemanticContextInstruction, E: PartialEq + ExtendedExpression<I>> PartialEq for Binding<'a, I, E>
impl<'a, I: SemanticContextInstruction, E: ExtendedExpression<I>> StructuralPartialEq for Binding<'a, I, E>
Auto Trait Implementations§
impl<'a, I, E> Freeze for Binding<'a, I, E>
impl<'a, I, E> RefUnwindSafe for Binding<'a, I, E>where
I: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, I, E> Send for Binding<'a, I, E>
impl<'a, I, E> Sync for Binding<'a, I, E>
impl<'a, I, E> Unpin for Binding<'a, I, E>
impl<'a, I, E> UnwindSafe for Binding<'a, I, E>where
I: UnwindSafe,
E: UnwindSafe,
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