Struct rustfmt_nightly::stmt::Stmt
source · pub(crate) struct Stmt<'a> {
inner: &'a Stmt,
is_last: bool,
}
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§
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
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