Struct semantic_analyzer::ast::LetBinding
source · pub struct LetBinding<'a, I: SemanticContextInstruction, E: ExtendedExpression<I>> {
pub name: ValueName<'a>,
pub mutable: bool,
pub value_type: Option<Type<'a>>,
pub value: Box<Expression<'a, I, E>>,
}Expand description
LetBinding let binding element of AST. Basic entity
for values declarations.
Fields§
§name: ValueName<'a>Value name of let binding
mutable: boolMutability flag of binding
value_type: Option<Type<'a>>Optional type of value
value: Box<Expression<'a, I, E>>Value expression to bind as result of let bending
Trait Implementations§
source§impl<'a, I: Clone + SemanticContextInstruction, E: Clone + ExtendedExpression<I>> Clone for LetBinding<'a, I, E>
impl<'a, I: Clone + SemanticContextInstruction, E: Clone + ExtendedExpression<I>> Clone for LetBinding<'a, I, E>
source§fn clone(&self) -> LetBinding<'a, I, E>
fn clone(&self) -> LetBinding<'a, I, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a, I: Debug + SemanticContextInstruction, E: Debug + ExtendedExpression<I>> Debug for LetBinding<'a, I, E>
impl<'a, I: Debug + SemanticContextInstruction, E: Debug + ExtendedExpression<I>> Debug for LetBinding<'a, I, E>
source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<LetBinding<'_, I, E>> for LetBinding
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> From<LetBinding<'_, I, E>> for LetBinding
source§fn from(value: LetBinding<'_, I, E>) -> Self
fn from(value: LetBinding<'_, I, E>) -> Self
Converts to this type from the input type.
source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetLocation for LetBinding<'_, I, E>
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetLocation for LetBinding<'_, I, E>
fn location(&self) -> CodeLocation
source§impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetName for LetBinding<'_, I, E>
impl<I: SemanticContextInstruction, E: ExtendedExpression<I>> GetName for LetBinding<'_, I, E>
source§impl<'a, I: PartialEq + SemanticContextInstruction, E: PartialEq + ExtendedExpression<I>> PartialEq for LetBinding<'a, I, E>
impl<'a, I: PartialEq + SemanticContextInstruction, E: PartialEq + ExtendedExpression<I>> PartialEq for LetBinding<'a, I, E>
impl<'a, I: SemanticContextInstruction, E: ExtendedExpression<I>> StructuralPartialEq for LetBinding<'a, I, E>
Auto Trait Implementations§
impl<'a, I, E> Freeze for LetBinding<'a, I, E>
impl<'a, I, E> RefUnwindSafe for LetBinding<'a, I, E>where
I: RefUnwindSafe,
E: RefUnwindSafe,
impl<'a, I, E> Send for LetBinding<'a, I, E>
impl<'a, I, E> Sync for LetBinding<'a, I, E>
impl<'a, I, E> Unpin for LetBinding<'a, I, E>
impl<'a, I, E> UnwindSafe for LetBinding<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)