pub struct LetStatement<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub expr: Expr<'a>,
}
Expand description
Represents a let statement in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The doc comments for the statement.
id: Ident<'a>
The newly bound identifier.
expr: Expr<'a>
The expression being bound.
Trait Implementations§
Source§impl<'a> Clone for LetStatement<'a>
impl<'a> Clone for LetStatement<'a>
Source§fn clone(&self) -> LetStatement<'a>
fn clone(&self) -> LetStatement<'a>
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<'a> Debug for LetStatement<'a>
impl<'a> Debug for LetStatement<'a>
Auto Trait Implementations§
impl<'a> Freeze for LetStatement<'a>
impl<'a> RefUnwindSafe for LetStatement<'a>
impl<'a> Send for LetStatement<'a>
impl<'a> Sync for LetStatement<'a>
impl<'a> Unpin for LetStatement<'a>
impl<'a> UnwindSafe for LetStatement<'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