#[non_exhaustive]pub struct IncRootFact {
pub path: String,
pub action: IncRootAction,
pub kind: IncRootKind,
pub range: SourceLocation,
pub directive_item: Option<HirId>,
pub scope_id: Option<HirScopeId>,
pub package_context: Option<String>,
pub provenance: CompileProvenance,
pub confidence: CompileConfidence,
}Expand description
Include-root effect.
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 written after static cleanup.
action: IncRootActionWhether the root is added or removed.
kind: IncRootKindSource of the include root.
range: SourceLocationSource range for the effect.
directive_item: Option<HirId>Directive that produced this effect.
scope_id: Option<HirScopeId>Scope containing the effect.
package_context: Option<String>Package context active at the effect.
provenance: CompileProvenanceHow this fact was produced.
confidence: CompileConfidenceConfidence in this fact.
Trait Implementations§
Source§impl Clone for IncRootFact
impl Clone for IncRootFact
Source§fn clone(&self) -> IncRootFact
fn clone(&self) -> IncRootFact
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 IncRootFact
impl Debug for IncRootFact
Source§impl PartialEq for IncRootFact
impl PartialEq for IncRootFact
Source§fn eq(&self, other: &IncRootFact) -> bool
fn eq(&self, other: &IncRootFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for IncRootFact
impl StructuralPartialEq for IncRootFact
Auto Trait Implementations§
impl Freeze for IncRootFact
impl RefUnwindSafe for IncRootFact
impl Send for IncRootFact
impl Sync for IncRootFact
impl Unpin for IncRootFact
impl UnsafeUnpin for IncRootFact
impl UnwindSafe for IncRootFact
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