pub struct Variable<T: Displayed> {
pub name: String,
pub definition_span: Span,
pub definition: Expr<T>,
}
Expand description
A variable created with a let statement.
Fields§
§name: String
Variable’s name
definition_span: Span
Variable’s definition span.
definition: Expr<T>
Variable’s definition.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Variable<T>
impl<T> !RefUnwindSafe for Variable<T>
impl<T> !Send for Variable<T>
impl<T> !Sync for Variable<T>
impl<T> Unpin for Variable<T>
impl<T> !UnwindSafe for Variable<T>
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
Source§impl<T> Convert for T
impl<T> Convert for T
Source§fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
fn convert<U>(self, context: &CompileContext) -> Expr<U>where
U: ConvertFrom<T>,
Convert
self
into a specific type. Read moreSource§fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
fn can_convert<U>(&self) -> boolwhere
U: ConvertFrom<T>,
Check if
self
can be converted into a specific type. Read more