pub struct Return {
pub return_token: Token,
pub expr: Option<Box<Expr>>,
}Expand description
Represents a return statement in the AST.
A return statement exits a function, optionally returning an expression.
Fields§
§return_token: TokenThe token representing the return keyword.
expr: Option<Box<Expr>>An optional expression to return from the function.
Trait Implementations§
impl StructuralPartialEq for Return
Auto Trait Implementations§
impl Freeze for Return
impl RefUnwindSafe for Return
impl Send for Return
impl Sync for Return
impl Unpin for Return
impl UnwindSafe for Return
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