Struct semantic_analyzer::ast::LetBinding
source · pub struct LetBinding<'a> {
pub name: ValueName<'a>,
pub mutable: bool,
pub value_type: Option<Type<'a>>,
pub value: Box<Expression<'a>>,
}
Fields§
§name: ValueName<'a>
§mutable: bool
§value_type: Option<Type<'a>>
§value: Box<Expression<'a>>
Trait Implementations§
source§impl<'a> Clone for LetBinding<'a>
impl<'a> Clone for LetBinding<'a>
source§fn clone(&self) -> LetBinding<'a>
fn clone(&self) -> LetBinding<'a>
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> Debug for LetBinding<'a>
impl<'a> Debug for LetBinding<'a>
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 GetLocation for LetBinding<'_>
impl GetLocation for LetBinding<'_>
fn location(&self) -> CodeLocation
source§impl<'a> PartialEq<LetBinding<'a>> for LetBinding<'a>
impl<'a> PartialEq<LetBinding<'a>> for LetBinding<'a>
source§fn eq(&self, other: &LetBinding<'a>) -> bool
fn eq(&self, other: &LetBinding<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> StructuralPartialEq for LetBinding<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for LetBinding<'a>
impl<'a> Send for LetBinding<'a>
impl<'a> Sync for LetBinding<'a>
impl<'a> Unpin for LetBinding<'a>
impl<'a> UnwindSafe for LetBinding<'a>
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