#[non_exhaustive]pub struct ModuleResolutionCandidatePathState {
pub candidate_path: String,
pub exists: bool,
}Expand description
Candidate path state used to invalidate module-resolution cache entries.
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.candidate_path: StringCandidate module path under a searched root.
exists: boolWhether the caller observed the candidate path as existing.
Trait Implementations§
Source§impl Clone for ModuleResolutionCandidatePathState
impl Clone for ModuleResolutionCandidatePathState
Source§fn clone(&self) -> ModuleResolutionCandidatePathState
fn clone(&self) -> ModuleResolutionCandidatePathState
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 PartialEq for ModuleResolutionCandidatePathState
impl PartialEq for ModuleResolutionCandidatePathState
Source§fn eq(&self, other: &ModuleResolutionCandidatePathState) -> bool
fn eq(&self, other: &ModuleResolutionCandidatePathState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleResolutionCandidatePathState
impl StructuralPartialEq for ModuleResolutionCandidatePathState
Auto Trait Implementations§
impl Freeze for ModuleResolutionCandidatePathState
impl RefUnwindSafe for ModuleResolutionCandidatePathState
impl Send for ModuleResolutionCandidatePathState
impl Sync for ModuleResolutionCandidatePathState
impl Unpin for ModuleResolutionCandidatePathState
impl UnsafeUnpin for ModuleResolutionCandidatePathState
impl UnwindSafe for ModuleResolutionCandidatePathState
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