pub struct Stmt {
pub id: NodeId,
pub span: Span,
pub label: Option<Spanned<Name>>,
pub data: StmtData,
}
Fields§
§id: NodeId
§span: Span
§label: Option<Spanned<Name>>
§data: StmtData
Trait Implementations§
Source§impl HasSpan for Stmt
impl HasSpan for Stmt
Source§fn human_span(&self) -> Span
fn human_span(&self) -> Span
Obtain a span which can be used to refer to this node in error messages
presented to humans. This will generally be the name for things like
entities, processes, and variables. Defaults to return whatever
span()
returns.impl Eq for Stmt
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnwindSafe for Stmt
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