Struct syntax::ast::BlockUnstable [-] [+] [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
expr
id
rules
span

Trait Implementations

impl ToSource for Block

fn to_source(&self) -> String

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, Error>

impl Encodable for Block

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

impl Eq for Block

fn assert_receiver_is_total_eq(&self)

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)