Enum syntex_syntax::ast::PathListItem_ [] [src]

pub enum PathListItem_ {
    PathListIdent {
        name: Ident,
        rename: Option<Ident>,
        id: NodeId,
    },
    PathListMod {
        rename: Option<Ident>,
        id: NodeId,
    },
}

Variants

PathListIdent

Fields

name
rename

renamed in list, eg use foo::{bar as baz};

id
PathListMod

Fields

rename

renamed in list, eg use foo::{self as baz};

id

Methods

impl PathListItem_

fn id(&self) -> NodeId

fn name(&self) -> Option<Ident>

fn rename(&self) -> Option<Ident>

Trait Implementations

Derived Implementations

impl Copy for PathListItem_

impl Debug for PathListItem_

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

impl Hash for PathListItem_

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

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

impl Decodable for PathListItem_

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

impl Encodable for PathListItem_

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

impl Eq for PathListItem_

impl PartialEq for PathListItem_

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

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

impl Clone for PathListItem_

fn clone(&self) -> PathListItem_

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