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

pub struct Mod {
    pub inner: Span,
    pub view_items: Vec<ViewItem>,
    pub items: Vec<P<Item>>,
}

Fields

inner

A span from the first token past { to the last token until }. For mod foo;, the inner span ranges from the first token to the last token in the external file.

view_items
items

Trait Implementations

Derived Implementations

impl Show for Mod

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

impl<__S: Writer + Hasher> Hash<__S> for Mod

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

impl Decodable for Mod

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

impl Encodable for Mod

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

impl Eq for Mod

fn assert_receiver_is_total_eq(&self)

impl PartialEq for Mod

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

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

impl Clone for Mod

fn clone(&self) -> Mod

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