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
sourceimpl<__CTX> HashStable<__CTX> for UseKind where
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for UseKind where
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
impl Copy for UseKind
impl StructuralPartialEq for UseKind
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Single: 0 bytesGlob: 0 bytesListStem: 0 bytes