Struct syntax::ast::ModExperimental [-]  [+] [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> Hash<__S> for Mod

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

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

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

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

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

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)