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: ValueName
Value name
mutable: bool
Value 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 duplicate 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 Display for LetBinding
impl Display for LetBinding
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 PartialEq for LetBinding
impl PartialEq for LetBinding
impl StructuralPartialEq for LetBinding
Auto Trait Implementations§
impl Freeze for LetBinding
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