Enum syntax::ast::UseTreeKind [−][src]
pub enum UseTreeKind {
Simple(Option<Ident>, NodeId, NodeId),
Nested(Vec<(UseTree, NodeId)>),
Glob,
}Part of use item to the right of its prefix.
Variants
Simple(Option<Ident>, NodeId, NodeId)use prefix or use prefix as rename
The extra NodeIds are for HIR lowering, when additional statements are created for each
namespace.
Nested(Vec<(UseTree, NodeId)>)use prefix::{...}
Globuse prefix::*
Trait Implementations
impl Clone for UseTreeKind[src]
impl Clone for UseTreeKindfn clone(&self) -> UseTreeKind[src]
fn clone(&self) -> UseTreeKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Encodable for UseTreeKind[src]
impl Encodable for UseTreeKindimpl Decodable for UseTreeKind[src]
impl Decodable for UseTreeKindimpl Debug for UseTreeKind[src]
impl Debug for UseTreeKindAuto Trait Implementations
impl !Send for UseTreeKind
impl !Send for UseTreeKindimpl !Sync for UseTreeKind
impl !Sync for UseTreeKind