Struct syntax::ast::BlockExperimental [-]  [+] [src]

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

Fields

view_items
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 Show for Block

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

impl<__S: Writer> Hash<__S> for Block

fn hash(&self, __arg_0: &mut __S)

impl<__D: Decoder<__E>, __E> Decodable<__D, __E> for Block

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

impl<__S: Encoder<__E>, __E> Encodable<__S, __E> for Block

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

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)