#[non_exhaustive]pub struct ModuleRequest {
pub target: Option<String>,
pub kind: ModuleRequestKind,
pub range: SourceLocation,
pub directive_item: Option<HirId>,
pub scope_id: Option<HirScopeId>,
pub package_context: Option<String>,
pub resolution: ModuleResolutionStatus,
pub provenance: CompileProvenance,
pub confidence: CompileConfidence,
}Expand description
Module load 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.target: Option<String>Static target, when known.
kind: ModuleRequestKindSource shape that requested the module.
range: SourceLocationSource range for the request.
directive_item: Option<HirId>Directive that produced this request.
scope_id: Option<HirScopeId>Scope containing the request.
package_context: Option<String>Package context active at the request.
resolution: ModuleResolutionStatusStatic resolution status for this first slice.
provenance: CompileProvenanceHow this fact was produced.
confidence: CompileConfidenceConfidence in this fact.
Trait Implementations§
Source§impl Clone for ModuleRequest
impl Clone for ModuleRequest
Source§fn clone(&self) -> ModuleRequest
fn clone(&self) -> ModuleRequest
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 ModuleRequest
impl Debug for ModuleRequest
Source§impl PartialEq for ModuleRequest
impl PartialEq for ModuleRequest
Source§fn eq(&self, other: &ModuleRequest) -> bool
fn eq(&self, other: &ModuleRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ModuleRequest
impl StructuralPartialEq for ModuleRequest
Auto Trait Implementations§
impl Freeze for ModuleRequest
impl RefUnwindSafe for ModuleRequest
impl Send for ModuleRequest
impl Sync for ModuleRequest
impl Unpin for ModuleRequest
impl UnsafeUnpin for ModuleRequest
impl UnwindSafe for ModuleRequest
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