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 NodeId
s are for HIR lowering, when additional statements are created for each
namespace.
Nested(Vec<(UseTree, NodeId)>)
use prefix::{...}
Glob
use prefix::*
Trait Implementations
impl Clone for UseTreeKind
[src]
impl Clone for UseTreeKind
fn clone(&self) -> UseTreeKind
[src]
fn clone(&self) -> UseTreeKind
Returns 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 PartialEq for UseTreeKind
[src]
impl PartialEq for UseTreeKind
fn eq(&self, other: &UseTreeKind) -> bool
[src]
fn eq(&self, other: &UseTreeKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UseTreeKind) -> bool
[src]
fn ne(&self, other: &UseTreeKind) -> bool
This method tests for !=
.
impl Eq for UseTreeKind
[src]
impl Eq for UseTreeKind
impl Encodable for UseTreeKind
[src]
impl Encodable for UseTreeKind
impl Decodable for UseTreeKind
[src]
impl Decodable for UseTreeKind
impl Hash for UseTreeKind
[src]
impl Hash for UseTreeKind
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for UseTreeKind
[src]
impl Debug for UseTreeKind
Auto Trait Implementations
impl !Send for UseTreeKind
impl !Send for UseTreeKind
impl !Sync for UseTreeKind
impl !Sync for UseTreeKind