Struct semantic_analyzer::ast::Binding
source · pub struct Binding<'a, E: ExtendedExpression> {
pub name: ValueName<'a>,
pub value: Box<Expression<'a, 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, E>>Value expression as result of binding
Trait Implementations§
source§impl<E: ExtendedExpression> GetLocation for Binding<'_, E>
impl<E: ExtendedExpression> GetLocation for Binding<'_, E>
fn location(&self) -> CodeLocation
source§impl<'a, E: PartialEq + ExtendedExpression> PartialEq for Binding<'a, E>
impl<'a, E: PartialEq + ExtendedExpression> PartialEq for Binding<'a, E>
impl<'a, E: ExtendedExpression> StructuralPartialEq for Binding<'a, E>
Auto Trait Implementations§
impl<'a, E> RefUnwindSafe for Binding<'a, E>where
E: RefUnwindSafe,
impl<'a, E> Send for Binding<'a, E>where
E: Send,
impl<'a, E> Sync for Binding<'a, E>where
E: Sync,
impl<'a, E> Unpin for Binding<'a, E>
impl<'a, E> UnwindSafe for Binding<'a, E>where
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