pub struct LabeledStmt {
pub leading_comments: Vec<Comment>,
pub label: Ident,
pub colon_span: Span,
pub stmt: Box<Stmt>,
}Expand description
A labeled statement: label: stmt.
Fields§
§leading_comments: Vec<Comment>§label: Ident§colon_span: Span§stmt: Box<Stmt>Implementations§
Trait Implementations§
Source§impl Clone for LabeledStmt
impl Clone for LabeledStmt
Source§fn clone(&self) -> LabeledStmt
fn clone(&self) -> LabeledStmt
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 LabeledStmt
impl Debug for LabeledStmt
impl Eq for LabeledStmt
Source§impl Hash for LabeledStmt
impl Hash for LabeledStmt
Source§impl PartialEq for LabeledStmt
impl PartialEq for LabeledStmt
Source§fn eq(&self, other: &LabeledStmt) -> bool
fn eq(&self, other: &LabeledStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LabeledStmt
Auto Trait Implementations§
impl Freeze for LabeledStmt
impl RefUnwindSafe for LabeledStmt
impl Send for LabeledStmt
impl Sync for LabeledStmt
impl Unpin for LabeledStmt
impl UnsafeUnpin for LabeledStmt
impl UnwindSafe for LabeledStmt
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