Struct syntax::ast::Block [−][src]
pub struct Block {
pub stmts: Vec<Stmt>,
pub id: NodeId,
pub rules: BlockCheckMode,
pub span: Span,
pub recovered: bool,
}A Block ({ .. }).
E.g. { .. } as in fn foo() { .. }
Fields
stmts: Vec<Stmt>
Statements in a block
id: NodeId
rules: BlockCheckMode
Distinguishes between unsafe { ... } and { ... }
span: Span
recovered: bool
Trait Implementations
impl Clone for Block[src]
impl Clone for Blockfn clone(&self) -> Block[src]
fn clone(&self) -> BlockReturns 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 Block[src]
impl PartialEq for Blockfn eq(&self, other: &Block) -> bool[src]
fn eq(&self, other: &Block) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Block) -> bool[src]
fn ne(&self, other: &Block) -> boolThis method tests for !=.
impl Eq for Block[src]
impl Eq for Blockimpl Encodable for Block[src]
impl Encodable for Blockimpl Decodable for Block[src]
impl Decodable for Blockimpl Hash for Block[src]
impl Hash for Blockfn 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 Block[src]
impl Debug for Blockfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl ToTokens for Block[src]
impl ToTokens for Block