Struct semantic_analyzer::types::LetBinding
source · pub struct LetBinding {
pub name: ValueName,
pub mutable: bool,
pub value_type: Option<Type>,
pub value: Box<Expression>,
}
Fields§
§name: ValueName
§mutable: bool
§value_type: Option<Type>
§value: Box<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 From<LetBinding<'_>> for LetBinding
impl From<LetBinding<'_>> for LetBinding
source§fn from(value: LetBinding<'_>) -> Self
fn from(value: LetBinding<'_>) -> Self
Converts to this type from the input type.
source§impl PartialEq<LetBinding> for LetBinding
impl PartialEq<LetBinding> 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 ==
.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