#[non_exhaustive]pub struct ModuleResolutionCacheRootKey {
pub path: String,
pub kind: IncRootKind,
pub source: String,
pub candidate_path: String,
pub precedence: usize,
}Expand description
Root identity included in module-resolution cache keys.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringInclude root path as configured or observed by the caller.
kind: IncRootKindRoot source category.
source: StringHuman-readable source label.
candidate_path: StringCandidate module path under this root.
precedence: usizeSearch precedence; lower values are searched first.
Trait Implementations§
Source§impl Clone for ModuleResolutionCacheRootKey
impl Clone for ModuleResolutionCacheRootKey
Source§fn clone(&self) -> ModuleResolutionCacheRootKey
fn clone(&self) -> ModuleResolutionCacheRootKey
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 ModuleResolutionCacheRootKey
impl Debug for ModuleResolutionCacheRootKey
Source§impl Hash for ModuleResolutionCacheRootKey
impl Hash for ModuleResolutionCacheRootKey
Source§impl PartialEq for ModuleResolutionCacheRootKey
impl PartialEq for ModuleResolutionCacheRootKey
Source§fn eq(&self, other: &ModuleResolutionCacheRootKey) -> bool
fn eq(&self, other: &ModuleResolutionCacheRootKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleResolutionCacheRootKey
impl StructuralPartialEq for ModuleResolutionCacheRootKey
Auto Trait Implementations§
impl Freeze for ModuleResolutionCacheRootKey
impl RefUnwindSafe for ModuleResolutionCacheRootKey
impl Send for ModuleResolutionCacheRootKey
impl Sync for ModuleResolutionCacheRootKey
impl Unpin for ModuleResolutionCacheRootKey
impl UnsafeUnpin for ModuleResolutionCacheRootKey
impl UnwindSafe for ModuleResolutionCacheRootKey
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