Struct rustfmt_nightly::stmt::Stmt
source · Fields
inner: &'a Stmt
is_last: bool
Implementations
sourceimpl<'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>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
where
I: Iterator<Item = &'a Stmt>,
A: Allocator,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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