pub struct ReturnStmt {
pub leading_comments: Vec<Comment>,
pub return_span: Span,
pub value: Option<Expr>,
pub semi_span: Span,
}Expand description
A return statement.
Fields§
§leading_comments: Vec<Comment>§return_span: Span§value: Option<Expr>§semi_span: SpanImplementations§
Trait Implementations§
Source§impl Clone for ReturnStmt
impl Clone for ReturnStmt
Source§fn clone(&self) -> ReturnStmt
fn clone(&self) -> ReturnStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReturnStmt
impl Debug for ReturnStmt
impl Eq for ReturnStmt
Source§impl Hash for ReturnStmt
impl Hash for ReturnStmt
Source§impl PartialEq for ReturnStmt
impl PartialEq for ReturnStmt
Source§fn eq(&self, other: &ReturnStmt) -> bool
fn eq(&self, other: &ReturnStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReturnStmt
Auto Trait Implementations§
impl Freeze for ReturnStmt
impl RefUnwindSafe for ReturnStmt
impl Send for ReturnStmt
impl Sync for ReturnStmt
impl Unpin for ReturnStmt
impl UnsafeUnpin for ReturnStmt
impl UnwindSafe for ReturnStmt
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