Struct syntex_syntax::ast::Block [] [src]

pub struct Block {
    pub stmts: Vec<P<Stmt>>,
    pub expr: Option<P<Expr>>,
    pub id: NodeId,
    pub rules: BlockCheckMode,
    pub span: Span,
}

Fields

stmts

Statements in a block

expr

An expression at the end of the block without a semicolon, if any

id
rules

Distinguishes between unsafe { ... } and { ... }

span

Trait Implementations

impl ToTokens for Block

fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>

Derived Implementations

impl Debug for Block

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for Block

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for Block

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Block, __D::Error>

impl Encodable for Block

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Eq for Block

impl PartialEq for Block

fn eq(&self, __arg_0: &Block) -> bool

fn ne(&self, __arg_0: &Block) -> bool

impl Clone for Block

fn clone(&self) -> Block

fn clone_from(&mut self, source: &Self)