#[non_exhaustive]pub struct ModuleResolutionCacheKey {
pub resolver_epoch: u64,
pub request_index: usize,
pub directive_item: Option<HirId>,
pub request_kind: ModuleRequestKind,
pub target: String,
pub relative_path: String,
pub roots: Vec<ModuleResolutionCacheRootKey>,
pub range: SourceLocation,
pub package_context: Option<String>,
}Expand description
Cache key for a static module-resolution candidate.
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.resolver_epoch: u64Caller-supplied resolver epoch, policy version, or filesystem snapshot id.
request_index: usizeZero-based request index in CompileEnvironment::module_requests.
directive_item: Option<HirId>Directive HIR item that produced this request.
request_kind: ModuleRequestKindSource shape that requested the module.
target: StringStatic module target.
relative_path: StringRelative module path, for example Foo/Bar.pm.
roots: Vec<ModuleResolutionCacheRootKey>Ordered candidate roots included in the cache identity.
range: SourceLocationSource range for the request.
package_context: Option<String>Package context active at the request.
Trait Implementations§
Source§impl Clone for ModuleResolutionCacheKey
impl Clone for ModuleResolutionCacheKey
Source§fn clone(&self) -> ModuleResolutionCacheKey
fn clone(&self) -> ModuleResolutionCacheKey
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 ModuleResolutionCacheKey
impl Debug for ModuleResolutionCacheKey
Source§impl Hash for ModuleResolutionCacheKey
impl Hash for ModuleResolutionCacheKey
Source§impl PartialEq for ModuleResolutionCacheKey
impl PartialEq for ModuleResolutionCacheKey
Source§fn eq(&self, other: &ModuleResolutionCacheKey) -> bool
fn eq(&self, other: &ModuleResolutionCacheKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleResolutionCacheKey
impl StructuralPartialEq for ModuleResolutionCacheKey
Auto Trait Implementations§
impl Freeze for ModuleResolutionCacheKey
impl RefUnwindSafe for ModuleResolutionCacheKey
impl Send for ModuleResolutionCacheKey
impl Sync for ModuleResolutionCacheKey
impl Unpin for ModuleResolutionCacheKey
impl UnsafeUnpin for ModuleResolutionCacheKey
impl UnwindSafe for ModuleResolutionCacheKey
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