pub struct ImportResolution {
pub symbol: String,
pub declared_module: String,
pub mode: ImportResolutionMode,
pub target: Option<ModuleId>,
pub selected_path: Vec<ModuleId>,
pub attempts: Vec<ImportResolutionAttempt>,
}Expand description
Retained pre-collapse provenance for one IMPORTS symbol.
Fields§
§symbol: StringImported symbol.
declared_module: StringSource module name written in the importing module.
mode: ImportResolutionModeResolver strategy used for the import group.
target: Option<ModuleId>Exact defining module version retained after resolution.
selected_path: Vec<ModuleId>Exact selected forwarding path, excluding the importing module itself.
attempts: Vec<ImportResolutionAttempt>Candidate paths attempted before the transitive import map was collapsed.
Trait Implementations§
Source§impl Clone for ImportResolution
impl Clone for ImportResolution
Source§fn clone(&self) -> ImportResolution
fn clone(&self) -> ImportResolution
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 ImportResolution
impl Debug for ImportResolution
impl Eq for ImportResolution
Source§impl PartialEq for ImportResolution
impl PartialEq for ImportResolution
impl StructuralPartialEq for ImportResolution
Auto Trait Implementations§
impl Freeze for ImportResolution
impl RefUnwindSafe for ImportResolution
impl Send for ImportResolution
impl Sync for ImportResolution
impl Unpin for ImportResolution
impl UnsafeUnpin for ImportResolution
impl UnwindSafe for ImportResolution
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.