Struct edlang_ast::ReturnStmt
source · pub struct ReturnStmt {
pub value: Option<Expression>,
pub span: Span,
}
Fields§
§value: Option<Expression>
§span: Span
Trait Implementations§
source§impl Clone for ReturnStmt
impl Clone for ReturnStmt
source§fn clone(&self) -> ReturnStmt
fn clone(&self) -> ReturnStmt
Returns a copy of the value. Read more
1.0.0 · 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
source§impl Hash for ReturnStmt
impl Hash for ReturnStmt
source§impl Ord for ReturnStmt
impl Ord for ReturnStmt
source§fn cmp(&self, other: &ReturnStmt) -> Ordering
fn cmp(&self, other: &ReturnStmt) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReturnStmt
impl PartialEq for ReturnStmt
source§fn eq(&self, other: &ReturnStmt) -> bool
fn eq(&self, other: &ReturnStmt) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReturnStmt
impl PartialOrd for ReturnStmt
source§fn partial_cmp(&self, other: &ReturnStmt) -> Option<Ordering>
fn partial_cmp(&self, other: &ReturnStmt) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ReturnStmt
impl StructuralEq for ReturnStmt
impl StructuralPartialEq for ReturnStmt
Auto Trait Implementations§
impl RefUnwindSafe for ReturnStmt
impl Send for ReturnStmt
impl Sync for ReturnStmt
impl Unpin 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