pub struct SourceImportFact {
pub source_span: Option<SourceSpan>,
pub relation: usize,
pub span: SourceByteSpan,
pub module: Option<String>,
pub references: Vec<ImportReference>,
pub rust: Option<Arc<SourceRustUse>>,
pub rust_toolchain: Option<Box<ImportReference>>,
}Expand description
One import declaration’s independently visible references.
Fields§
§source_span: Option<SourceSpan>Exact original source lines and Unicode-scalar columns, when captured.
relation: usizeOrdinal in the accompanying graph’s relation vector.
span: SourceByteSpanOriginal import extent, before canonical display normalization.
module: Option<String>Independently static module target, even when no local binding is valid.
references: Vec<ImportReference>Provider-owned canonical bindings; no lexical scope is inferred from their names.
rust: Option<Arc<SourceRustUse>>Rust’s complete use-tree leaf before module versus value classification.
rust_toolchain: Option<Box<ImportReference>>Source-proven toolchain import, absent for repository or unproved roots.
Trait Implementations§
Source§impl Clone for SourceImportFact
impl Clone for SourceImportFact
Source§fn clone(&self) -> SourceImportFact
fn clone(&self) -> SourceImportFact
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 SourceImportFact
impl Debug for SourceImportFact
impl Eq for SourceImportFact
Source§impl PartialEq for SourceImportFact
impl PartialEq for SourceImportFact
Source§fn eq(&self, other: &SourceImportFact) -> bool
fn eq(&self, other: &SourceImportFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceImportFact
Auto Trait Implementations§
impl Freeze for SourceImportFact
impl RefUnwindSafe for SourceImportFact
impl Send for SourceImportFact
impl Sync for SourceImportFact
impl Unpin for SourceImportFact
impl UnsafeUnpin for SourceImportFact
impl UnwindSafe for SourceImportFact
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.