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

pub struct Mod {
    pub inner: Span,
    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.

items

Trait Implementations

Derived Implementations

impl Debug for Mod

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

impl Hash for Mod

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

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

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)