Struct resast::stmt::LabeledStmt
source · [−]Expand description
A break statement
label: {
break label;
}
while (true) {
break;
}
Fields
label: Ident<'a>
body: Box<Stmt<'a>>
Trait Implementations
sourceimpl<'a> Clone for LabeledStmt<'a>
impl<'a> Clone for LabeledStmt<'a>
sourcefn clone(&self) -> LabeledStmt<'a>
fn clone(&self) -> LabeledStmt<'a>
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 more
sourceimpl<'a> Debug for LabeledStmt<'a>
impl<'a> Debug for LabeledStmt<'a>
sourceimpl<'a> From<LabeledStmt<'a>> for LabeledStmt<'a>
impl<'a> From<LabeledStmt<'a>> for LabeledStmt<'a>
sourcefn from(other: LabeledStmt<'a>) -> Self
fn from(other: LabeledStmt<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<LabeledStmt<'a>> for LabeledStmt<'a>
impl<'a> PartialEq<LabeledStmt<'a>> for LabeledStmt<'a>
sourcefn eq(&self, other: &LabeledStmt<'a>) -> bool
fn eq(&self, other: &LabeledStmt<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<'a> StructuralPartialEq for LabeledStmt<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LabeledStmt<'a>
impl<'a> Send for LabeledStmt<'a>
impl<'a> Sync for LabeledStmt<'a>
impl<'a> Unpin for LabeledStmt<'a>
impl<'a> UnwindSafe for LabeledStmt<'a>
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