Struct syntax::ast::Stmt [−][src]
A statement
Fields
id: NodeId
node: StmtKind
span: Span
Methods
impl Stmt[src]
impl Stmtpub fn add_trailing_semicolon(self) -> Self[src]
pub fn add_trailing_semicolon(self) -> Selfpub fn is_item(&self) -> bool[src]
pub fn is_item(&self) -> boolpub fn is_expr(&self) -> bool[src]
pub fn is_expr(&self) -> boolTrait Implementations
impl Clone for Stmt[src]
impl Clone for Stmtfn clone(&self) -> Stmt[src]
fn clone(&self) -> StmtReturns 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 Stmtimpl Decodable for Stmt[src]
impl Decodable for Stmtimpl Debug for Stmt[src]
impl Debug for Stmtfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl HasAttrs for Stmt[src]
impl HasAttrs for Stmtfn 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) -> Selfimpl ToTokens for Stmt[src]
impl ToTokens for Stmt