Struct syntax::ast::UseTree [−][src]
pub struct UseTree { pub prefix: Path, pub kind: UseTreeKind, pub span: Span, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A tree of paths sharing common prefixes.
Used in use
items both at top-level and inside of braces in import groups.
Fields
prefix: Path
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
kind: UseTreeKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
span: Span
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl UseTree
[src]
impl UseTree
pub fn ident(&self) -> Ident
[src]
pub fn ident(&self) -> Ident
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Trait Implementations
impl Clone for UseTree
[src]
impl Clone for UseTree
fn clone(&self) -> UseTree
[src]
fn clone(&self) -> UseTree
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)
Performs copy-assignment from source
. Read more
impl PartialEq for UseTree
[src]
impl PartialEq for UseTree
fn eq(&self, other: &UseTree) -> bool
[src]
fn eq(&self, other: &UseTree) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UseTree) -> bool
[src]
fn ne(&self, other: &UseTree) -> bool
This method tests for !=
.
impl Eq for UseTree
[src]
impl Eq for UseTree
fn assert_receiver_is_total_eq(&self)
[src]
fn assert_receiver_is_total_eq(&self)
impl Encodable for UseTree
[src]
impl Encodable for UseTree
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Decodable for UseTree
[src]
impl Decodable for UseTree
fn decode<__D: Decoder>(d: &mut __D) -> Result<UseTree, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<UseTree, __D::Error>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
impl Hash for UseTree
[src]
impl Hash for UseTree
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for UseTree
[src]
impl Debug for UseTree