pub struct SourceRustUse {
pub path: SourceRustPath,
pub role: SourceRustUseRole,
pub local: Option<String>,
pub module: Arc<[String]>,
pub reexport: bool,
pub supported: bool,
}Expand description
One explicit use binding, paired with its existing import occurrence.
Fields§
§path: SourceRustPathComplete AST-owned path, without an inferred module/item split.
role: SourceRustUseRoleSource leaf role, including grouped self and wildcards.
local: Option<String>Actual local alias, absent for a wildcard or unsupported binding name.
module: Arc<[String]>Inline module path inside the owning source file.
reexport: boolVisibility syntax explicitly makes this a re-export as well as an import.
supported: boolAttributes or malformed ownership prevent this occurrence from proving a target.
Trait Implementations§
Source§impl Clone for SourceRustUse
impl Clone for SourceRustUse
Source§fn clone(&self) -> SourceRustUse
fn clone(&self) -> SourceRustUse
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 moreSource§impl Debug for SourceRustUse
impl Debug for SourceRustUse
impl Eq for SourceRustUse
Source§impl PartialEq for SourceRustUse
impl PartialEq for SourceRustUse
Source§fn eq(&self, other: &SourceRustUse) -> bool
fn eq(&self, other: &SourceRustUse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceRustUse
Auto Trait Implementations§
impl Freeze for SourceRustUse
impl RefUnwindSafe for SourceRustUse
impl Send for SourceRustUse
impl Sync for SourceRustUse
impl Unpin for SourceRustUse
impl UnsafeUnpin for SourceRustUse
impl UnwindSafe for SourceRustUse
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> 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.