[−][src]Enum rustc_hir::UseKind

pub enum UseKind {
    Single,
    Glob,
    ListStem,
}

Variants

Single

One import, e.g., use foo::bar or use foo::bar as baz. Also produced for each element of a list use, e.g. use foo::{a, b} lowers to use foo::a; use foo::b;.

Glob

Glob import, e.g., use foo::*.

ListStem

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 Clone for UseKind[src]

impl Copy for UseKind[src]

impl Debug for UseKind[src]

impl<__E: Encoder> Encodable<__E> for UseKind[src]

impl<__CTX> HashStable<__CTX> for UseKind where
    __CTX: HashStableContext, 
[src]

impl PartialEq<UseKind> for UseKind[src]

impl StructuralPartialEq for UseKind[src]

Auto Trait Implementations

impl RefUnwindSafe for UseKind

impl Send for UseKind

impl Sync for UseKind

impl Unpin for UseKind

impl UnwindSafe for UseKind

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.