Struct esr::ast::statement::ReturnStatement
source · pub struct ReturnStatement<'ast> {
pub value: Option<ExpressionNode<'ast>>,
}
Fields
value: Option<ExpressionNode<'ast>>
Trait Implementations
sourceimpl<'ast> Clone for ReturnStatement<'ast>
impl<'ast> Clone for ReturnStatement<'ast>
sourcefn clone(&self) -> ReturnStatement<'ast>
fn clone(&self) -> ReturnStatement<'ast>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ast> Debug for ReturnStatement<'ast>
impl<'ast> Debug for ReturnStatement<'ast>
sourceimpl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
impl<'ast> From<ReturnStatement<'ast>> for Statement<'ast>
sourcefn from(val: ReturnStatement<'ast>) -> Self
fn from(val: ReturnStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<ReturnStatement<'ast>> for ReturnStatement<'ast>
impl<'ast> PartialEq<ReturnStatement<'ast>> for ReturnStatement<'ast>
sourcefn eq(&self, other: &ReturnStatement<'ast>) -> bool
fn eq(&self, other: &ReturnStatement<'ast>) -> bool
impl<'ast> Copy for ReturnStatement<'ast>
impl<'ast> StructuralPartialEq for ReturnStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for ReturnStatement<'ast>
impl<'ast> Send for ReturnStatement<'ast>
impl<'ast> !Sync for ReturnStatement<'ast>
impl<'ast> Unpin for ReturnStatement<'ast>
impl<'ast> UnwindSafe for ReturnStatement<'ast>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more