Struct semantic_analyzer::types::LetBinding
source · pub struct LetBinding {
pub name: ValueName,
pub mutable: bool,
pub value_type: Option<Type>,
pub value: Box<Expression>,
}Expand description
Let binding
Value initialization through binding.
Fields§
§name: ValueNameValue name
mutable: boolValue mutability flag
value_type: Option<Type>Value type
value: Box<Expression>Value bind expression
Trait Implementations§
source§impl Clone for LetBinding
impl Clone for LetBinding
source§fn clone(&self) -> LetBinding
fn clone(&self) -> LetBinding
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 Debug for LetBinding
impl Debug for LetBinding
source§impl<E: ExtendedExpression> From<LetBinding<'_, E>> for LetBinding
impl<E: ExtendedExpression> From<LetBinding<'_, E>> for LetBinding
source§fn from(value: LetBinding<'_, E>) -> Self
fn from(value: LetBinding<'_, E>) -> Self
Converts to this type from the input type.
source§impl PartialEq for LetBinding
impl PartialEq for LetBinding
source§fn eq(&self, other: &LetBinding) -> bool
fn eq(&self, other: &LetBinding) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToString for LetBinding
impl ToString for LetBinding
impl StructuralPartialEq for LetBinding
Auto Trait Implementations§
impl RefUnwindSafe for LetBinding
impl Send for LetBinding
impl Sync for LetBinding
impl Unpin for LetBinding
impl UnwindSafe for LetBinding
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