Enum rustc_hir::hir::UseKind [−][src]
pub enum UseKind {
Single,
Glob,
ListStem,
}Variants
Expand description
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;.
Expand description
Glob import, e.g., use foo::*.
Expand description
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<__CTX> HashStable<__CTX> for UseKind where
__CTX: HashStableContext, [src]
impl<__CTX> HashStable<__CTX> for UseKind where
__CTX: HashStableContext, [src]fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)[src]
impl Copy 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more