pub struct Return {
pub value: Option<Box<Expr>>,
pub span: Range<usize>,
pub return_span: Range<usize>,
}Expand description
A return expression, used to return a value from a function.
Fields§
§value: Option<Box<Expr>>The value to return from the function.
span: Range<usize>The region of the source code that this expression was parsed from.
return_span: Range<usize>The span of the return keyword.
Implementations§
Trait Implementations§
Source§impl Latex for Return
impl Latex for Return
Source§fn as_display(&self) -> LatexFormatter<'_, Self>
fn as_display(&self) -> LatexFormatter<'_, Self>
Wraps the value in a
LatexFormatter, which implements Display.Source§impl<'source> Parse<'source> for Return
impl<'source> Parse<'source> for Return
impl Eq for Return
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