Enum rustc::hir::UseKind [−][src]
pub enum UseKind { Single, Glob, ListStem, }
🔬 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?
Variants
Single
🔬 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?
One import, e.g. use foo::bar
or use foo::bar as baz
.
Also produced for each element of a list use
, e.g.
Glob
🔬 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?
Glob import, e.g. use foo::*
.
ListStem
🔬 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?
Degenerate list import, e.g. use foo::{a, b}
produces
an additional use foo::{}
for performing checks such as
unstable feature gating. May be removed in the future.
Trait Implementations
impl Copy for UseKind
[src]
impl Copy for UseKind
impl Clone for UseKind
[src]
impl Clone for UseKind
fn clone(&self) -> UseKind
[src]
fn clone(&self) -> UseKind
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 UseKind
[src]
impl PartialEq for UseKind
fn eq(&self, other: &UseKind) -> bool
[src]
fn eq(&self, other: &UseKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Encodable for UseKind
[src]
impl Encodable for UseKind
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 UseKind
[src]
impl Decodable for UseKind
fn decode<__D: Decoder>(d: &mut __D) -> Result<UseKind, __D::Error>
[src]
fn decode<__D: Decoder>(d: &mut __D) -> Result<UseKind, __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 Debug for UseKind
[src]
impl Debug for UseKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for UseKind
[src]
impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for UseKind
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
[src]
fn hash_stable<W: StableHasherResult>(
&self,
__ctx: &mut StableHashingContext<'a>,
__hasher: &mut StableHasher<W>
)
🔬 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?