pub enum SourceRustUseRole {
Item,
SelfNamespace,
Wildcard,
}Expand description
Meaning of one Rust use-tree leaf, before value/module lookup.
Variants§
Item
An identifier path may import a value, a type, a module, or several namespaces.
SelfNamespace
Grouped self syntax explicitly imports the prefix’s module namespace.
Wildcard
A wildcard retains dependencies without enumerating guessed export bindings.
Trait Implementations§
Source§impl Clone for SourceRustUseRole
impl Clone for SourceRustUseRole
Source§fn clone(&self) -> SourceRustUseRole
fn clone(&self) -> SourceRustUseRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SourceRustUseRole
Source§impl Debug for SourceRustUseRole
impl Debug for SourceRustUseRole
impl Eq for SourceRustUseRole
Source§impl Ord for SourceRustUseRole
impl Ord for SourceRustUseRole
Source§fn cmp(&self, other: &SourceRustUseRole) -> Ordering
fn cmp(&self, other: &SourceRustUseRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SourceRustUseRole
impl PartialEq for SourceRustUseRole
Source§fn eq(&self, other: &SourceRustUseRole) -> bool
fn eq(&self, other: &SourceRustUseRole) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SourceRustUseRole
impl PartialOrd for SourceRustUseRole
impl StructuralPartialEq for SourceRustUseRole
Auto Trait Implementations§
impl Freeze for SourceRustUseRole
impl RefUnwindSafe for SourceRustUseRole
impl Send for SourceRustUseRole
impl Sync for SourceRustUseRole
impl Unpin for SourceRustUseRole
impl UnsafeUnpin for SourceRustUseRole
impl UnwindSafe for SourceRustUseRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.