pub struct Stmt {
pub kind: StmtKind,
pub span: Span,
}Expand description
A statement or declaration.
Fields§
§kind: StmtKindStatement payload.
span: SpanSource range.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Forget for Stmt
impl Freeze for Stmtwhere
*const u8 is !null: Freeze,
PhantomData<Stmt>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const Stmt is !null: Freeze,
PhantomData<Declarator>: Freeze,
*const Pattern is !null: Freeze,
PhantomData<Pattern>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<SwitchCase>: Freeze,
PhantomData<Option<PatternElement>>: Freeze,
*const RestElement is !null: Freeze,
PhantomData<RestElement>: Freeze,
*const MemberPattern is !null: Freeze,
PhantomData<MemberPattern>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
*const Class is !null: Freeze,
PhantomData<Class>: Freeze,
*const ImportDecl is !null: Freeze,
PhantomData<ImportDecl>: Freeze,
*const ExportDecl is !null: Freeze,
PhantomData<ExportDecl>: Freeze,
impl Move for Stmt
impl RefUnwindSafe for Stmt
impl Send for Stmtwhere
RawVecInner: Send,
BoxRaw<Expr>: Send,
BoxRaw<Stmt>: Send,
BoxRaw<RestElement>: Send,
BoxRaw<Pattern>: Send,
BoxRaw<MemberPattern>: Send,
BoxRaw<Function>: Send,
BoxRaw<Class>: Send,
BoxRaw<ImportDecl>: Send,
BoxRaw<ExportDecl>: Send,
impl Sync for Stmtwhere
RawVecInner: Sync,
BoxRaw<Expr>: Sync,
BoxRaw<Stmt>: Sync,
BoxRaw<RestElement>: Sync,
BoxRaw<Pattern>: Sync,
BoxRaw<MemberPattern>: Sync,
BoxRaw<Function>: Sync,
BoxRaw<Class>: Sync,
BoxRaw<ImportDecl>: Sync,
BoxRaw<ExportDecl>: Sync,
impl Unpin for Stmt
impl UnsafeUnpin for Stmtwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Stmt>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const Stmt is !null: UnsafeUnpin,
PhantomData<Declarator>: UnsafeUnpin,
*const Pattern is !null: UnsafeUnpin,
PhantomData<Pattern>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SwitchCase>: UnsafeUnpin,
PhantomData<Option<PatternElement>>: UnsafeUnpin,
*const RestElement is !null: UnsafeUnpin,
PhantomData<RestElement>: UnsafeUnpin,
*const MemberPattern is !null: UnsafeUnpin,
PhantomData<MemberPattern>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
*const Class is !null: UnsafeUnpin,
PhantomData<Class>: UnsafeUnpin,
*const ImportDecl is !null: UnsafeUnpin,
PhantomData<ImportDecl>: UnsafeUnpin,
*const ExportDecl is !null: UnsafeUnpin,
PhantomData<ExportDecl>: UnsafeUnpin,
impl UnwindSafe for Stmtwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Stmt>: UnwindSafe,
BoxRaw<RestElement>: UnwindSafe,
BoxRaw<Pattern>: UnwindSafe,
BoxRaw<MemberPattern>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
BoxRaw<Class>: UnwindSafe,
BoxRaw<ImportDecl>: UnwindSafe,
BoxRaw<ExportDecl>: UnwindSafe,
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