Struct syntax::ast::Stmt [−][src]
A statement
Fields
id: NodeId
node: StmtKind
span: Span
Methods
impl Stmt
[src]
impl Stmt
pub fn add_trailing_semicolon(self) -> Self
[src]
pub fn add_trailing_semicolon(self) -> Self
pub fn is_item(&self) -> bool
[src]
pub fn is_item(&self) -> bool
pub fn is_expr(&self) -> bool
[src]
pub fn is_expr(&self) -> bool
Trait Implementations
impl Clone for Stmt
[src]
impl Clone for Stmt
fn clone(&self) -> Stmt
[src]
fn clone(&self) -> Stmt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Encodable for Stmt
[src]
impl Encodable for Stmt
impl Decodable for Stmt
[src]
impl Decodable for Stmt
impl Debug for Stmt
[src]
impl Debug for Stmt
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl HasAttrs for Stmt
[src]
impl HasAttrs for Stmt
fn attrs(&self) -> &[Attribute]
[src]
fn attrs(&self) -> &[Attribute]
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self
[src]
fn map_attrs<F: FnOnce(Vec<Attribute>) -> Vec<Attribute>>(self, f: F) -> Self
impl ToTokens for Stmt
[src]
impl ToTokens for Stmt