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 PartialEq for Stmt
[src]
impl PartialEq for Stmt
fn eq(&self, other: &Stmt) -> bool
[src]
fn eq(&self, other: &Stmt) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Stmt
[src]
impl Eq for Stmt
impl Encodable for Stmt
[src]
impl Encodable for Stmt
impl Decodable for Stmt
[src]
impl Decodable for Stmt
impl Hash for Stmt
[src]
impl Hash for Stmt
fn 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 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