Struct esr::ast::statement::LabeledStatement
source · pub struct LabeledStatement<'ast> {
pub label: &'ast str,
pub body: StatementNode<'ast>,
}
Fields
label: &'ast str
body: StatementNode<'ast>
Trait Implementations
sourceimpl<'ast> Clone for LabeledStatement<'ast>
impl<'ast> Clone for LabeledStatement<'ast>
sourcefn clone(&self) -> LabeledStatement<'ast>
fn clone(&self) -> LabeledStatement<'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 LabeledStatement<'ast>
impl<'ast> Debug for LabeledStatement<'ast>
sourceimpl<'ast> From<LabeledStatement<'ast>> for Statement<'ast>
impl<'ast> From<LabeledStatement<'ast>> for Statement<'ast>
sourcefn from(val: LabeledStatement<'ast>) -> Self
fn from(val: LabeledStatement<'ast>) -> Self
Converts to this type from the input type.
sourceimpl<'ast> PartialEq<LabeledStatement<'ast>> for LabeledStatement<'ast>
impl<'ast> PartialEq<LabeledStatement<'ast>> for LabeledStatement<'ast>
sourcefn eq(&self, other: &LabeledStatement<'ast>) -> bool
fn eq(&self, other: &LabeledStatement<'ast>) -> bool
impl<'ast> Copy for LabeledStatement<'ast>
impl<'ast> StructuralPartialEq for LabeledStatement<'ast>
Auto Trait Implementations
impl<'ast> RefUnwindSafe for LabeledStatement<'ast>
impl<'ast> Send for LabeledStatement<'ast>
impl<'ast> !Sync for LabeledStatement<'ast>
impl<'ast> Unpin for LabeledStatement<'ast>
impl<'ast> UnwindSafe for LabeledStatement<'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