#[non_exhaustive]pub struct ModuleResolutionCandidateRoot {
pub path: String,
pub kind: IncRootKind,
pub source: String,
pub candidate_path: String,
pub precedence: usize,
}Expand description
A single candidate root/path pair for a static module request.
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 ModuleResolutionCandidateRoot
impl Clone for ModuleResolutionCandidateRoot
Source§fn clone(&self) -> ModuleResolutionCandidateRoot
fn clone(&self) -> ModuleResolutionCandidateRoot
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 ModuleResolutionCandidateRoot
impl PartialEq for ModuleResolutionCandidateRoot
Source§fn eq(&self, other: &ModuleResolutionCandidateRoot) -> bool
fn eq(&self, other: &ModuleResolutionCandidateRoot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleResolutionCandidateRoot
impl StructuralPartialEq for ModuleResolutionCandidateRoot
Auto Trait Implementations§
impl Freeze for ModuleResolutionCandidateRoot
impl RefUnwindSafe for ModuleResolutionCandidateRoot
impl Send for ModuleResolutionCandidateRoot
impl Sync for ModuleResolutionCandidateRoot
impl Unpin for ModuleResolutionCandidateRoot
impl UnsafeUnpin for ModuleResolutionCandidateRoot
impl UnwindSafe for ModuleResolutionCandidateRoot
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