Enum rustc_typeck::hir::UseKind
[−]
[src]
pub enum UseKind {
Single,
Glob,
ListStem,
}🔬 This is a nightly-only experimental API. (
rustc_private)Variants
Single🔬 This is a nightly-only experimental API. (
rustc_private)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)Glob import, e.g. use foo::*.
ListStem🔬 This is a nightly-only experimental API. (
rustc_private)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 Decodable for UseKind[src]
fn decode<__D>(__arg_0: &mut __D) -> Result<UseKind, __D::Error> where __D: Decoder
🔬 This is a nightly-only experimental API. (
rustc_private)impl PartialEq<UseKind> for UseKind[src]
fn eq(&self, __arg_0: &UseKind) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Hash for UseKind[src]
fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Clone for UseKind[src]
fn clone(&self) -> UseKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Eq for UseKind[src]
impl Debug for UseKind[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Encodable for UseKind[src]
fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder
🔬 This is a nightly-only experimental API. (
rustc_private)