Struct rustfmt_nightly::stmt::Stmt
source · Fields§
§inner: &'a Stmt
§is_last: bool
Implementations§
source§impl<'a> Stmt<'a>
impl<'a> Stmt<'a>
pub(crate) fn as_ast_node(&self) -> &Stmt
pub(crate) fn to_item(&self) -> Option<&Item>
pub(crate) fn from_ast_node(inner: &'a Stmt, is_last: bool) -> Self
pub(crate) fn from_ast_nodes<I>(iter: I) -> Vec<Self> ⓘwhere
I: Iterator<Item = &'a Stmt>,
pub(crate) fn is_empty(&self) -> bool
fn is_last_expr(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Stmt<'a>
impl<'a> !Send for Stmt<'a>
impl<'a> !Sync for Stmt<'a>
impl<'a> Unpin for Stmt<'a>
impl<'a> !UnwindSafe for Stmt<'a>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes