pub struct Stmt {
pub kind: StmtKind,
pub span: Span,
pub doc_comment: Option<Comment>,
}Fields§
§kind: StmtKind§span: Span§doc_comment: Option<Comment>Implementations§
Source§impl Stmt
impl Stmt
Sourcepub fn leading_doc_comment(&self) -> Option<&Comment>
pub fn leading_doc_comment(&self) -> Option<&Comment>
The leading /** */ doc-block for this statement, regardless of where
it is stored. See crate::ast::Stmt::leading_doc_comment for the
full contract.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmt
impl Sync for Stmt
impl Unpin for Stmt
impl UnsafeUnpin 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