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 PartialEq for Stmt[src] 
impl PartialEq for Stmtfn eq(&self, other: &Stmt) -> bool[src] 
fn eq(&self, other: &Stmt) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Stmt) -> bool[src] 
fn ne(&self, other: &Stmt) -> boolThis method tests for !=.
impl Eq for Stmt[src] 
impl Eq for Stmtimpl Encodable for Stmt[src] 
impl Encodable for Stmtimpl Decodable for Stmt[src] 
impl Decodable for Stmtimpl Hash for Stmt[src] 
impl Hash for Stmtfn hash<__H: Hasher>(&self, state: &mut __H)[src] 
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl 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