pub struct LetStatement {
pub name: String,
pub is_mutable: bool,
pub value: Expression,
pub expr_type: TypeId,
pub location: Location,
}
Expand description
A variable declaration statement
Fields§
§name: String
Name of the variable
is_mutable: bool
Whether the variable is mutable
value: Expression
Initial value for the variable
expr_type: TypeId
Type of the variable
location: Location
Source code location information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LetStatement
impl RefUnwindSafe for LetStatement
impl Send for LetStatement
impl Sync for LetStatement
impl Unpin for LetStatement
impl UnwindSafe for LetStatement
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