pub struct Variable {
pub ident: String,
pub ty: VarType,
pub body: Box<ExpressionNode>,
}Expand description
Variable that includes a parameter but extends with a recursive ExpressionNode.
§Syntax example
var x: int = 3432;Fields§
§ident: StringVariable name/identifier.
ty: VarTypeThe expected type of the varible.
body: Box<ExpressionNode>An expression body that can be evaluated (1x ExpressionNode).
Trait Implementations§
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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