pub struct ScanCtx<'a> {
pub file: &'a ProjectFile,
pub source: &'a str,
pub line_starts: &'a [usize],
pub graph: &'a PythonGraphSource<'a>,
pub hits: &'a mut BTreeSet<UsageHit>,
pub unproven_hits: &'a mut BTreeSet<UsageHit>,
/* private fields */
}Fields§
§file: &'a ProjectFile§source: &'a str§line_starts: &'a [usize]§graph: &'a PythonGraphSource<'a>§hits: &'a mut BTreeSet<UsageHit>§unproven_hits: &'a mut BTreeSet<UsageHit>Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ScanCtx<'a>
impl<'a> !UnwindSafe for ScanCtx<'a>
impl<'a> Forget for ScanCtx<'a>
impl<'a> Freeze for ScanCtx<'a>where
&'a dyn PythonUsageSource: Freeze,
&'a ProjectFile: Freeze,
&'a str: Freeze,
&'a [usize]: Freeze,
&'a PythonGraphSource<'a>: Freeze,
&'a CodeUnit: Freeze,
*const ArcInner<CodeUnitInner> is !null: Freeze,
PhantomData<ArcInner<CodeUnitInner>>: Freeze,
&'a BTreeSet<(ProjectFile, String)>: Freeze,
&'a [ImportEdge]: Freeze,
&'a HashMap<String, Vec<ModuleBindingEvent>, FxBuildHasher>: Freeze,
&'a HashMap<String, Vec<ClassifiedModuleBindingEvent>, FxBuildHasher>: Freeze,
&'a [PythonImportBinding]: Freeze,
&'a HashMap<CodeUnit, LocalBindingsSnapshot<String>, FxBuildHasher>: Freeze,
&'a [ScopeRangeEntry]: Freeze,
&'a mut BTreeSet<UsageHit>: Freeze,
impl<'a> Move for ScanCtx<'a>
impl<'a> Send for ScanCtx<'a>where
&'a dyn PythonUsageSource: Send,
&'a ProjectFile: Send,
&'a str: Send,
&'a [usize]: Send,
&'a PythonGraphSource<'a>: Send,
&'a CodeUnit: Send,
Arc<CodeUnitInner>: Send,
&'a BTreeSet<(ProjectFile, String)>: Send,
&'a [ImportEdge]: Send,
&'a HashMap<String, Vec<ModuleBindingEvent>, FxBuildHasher>: Send,
&'a HashMap<String, Vec<ClassifiedModuleBindingEvent>, FxBuildHasher>: Send,
&'a [PythonImportBinding]: Send,
&'a HashMap<CodeUnit, LocalBindingsSnapshot<String>, FxBuildHasher>: Send,
&'a [ScopeRangeEntry]: Send,
NodeRef<Owned, UsageHit, SetValZST, LeafOrInternal>: Send,
BoxRaw<(UsageHit, SetValZST)>: Send,
impl<'a> Sync for ScanCtx<'a>where
Arc<ProjectFileInner>: Sync,
Arc<CodeUnitInner>: Sync,
NodeRef<Owned, (ProjectFile, String), SetValZST, LeafOrInternal>: Sync,
BoxRaw<((ProjectFile, String), SetValZST)>: Sync,
RawVecInner: Sync,
RawTable<(String, Vec<ModuleBindingEvent>)>: Sync,
RawTable<(String, Vec<ClassifiedModuleBindingEvent>)>: Sync,
RawTable<(CodeUnit, LocalBindingsSnapshot<String>)>: Sync,
NodeRef<Owned, UsageHit, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(UsageHit, SetValZST)>: Sync,
impl<'a> Unpin for ScanCtx<'a>where
&'a dyn PythonUsageSource: Unpin,
&'a ProjectFile: Unpin,
&'a str: Unpin,
&'a [usize]: Unpin,
&'a PythonGraphSource<'a>: Unpin,
&'a CodeUnit: Unpin,
Arc<CodeUnitInner>: Unpin,
&'a BTreeSet<(ProjectFile, String)>: Unpin,
&'a [ImportEdge]: Unpin,
&'a HashMap<String, Vec<ModuleBindingEvent>, FxBuildHasher>: Unpin,
&'a HashMap<String, Vec<ClassifiedModuleBindingEvent>, FxBuildHasher>: Unpin,
&'a [PythonImportBinding]: Unpin,
&'a HashMap<CodeUnit, LocalBindingsSnapshot<String>, FxBuildHasher>: Unpin,
&'a [ScopeRangeEntry]: Unpin,
&'a mut BTreeSet<UsageHit>: Unpin,
impl<'a> UnsafeUnpin for ScanCtx<'a>where
&'a dyn PythonUsageSource: UnsafeUnpin,
&'a ProjectFile: UnsafeUnpin,
&'a str: UnsafeUnpin,
&'a [usize]: UnsafeUnpin,
&'a PythonGraphSource<'a>: UnsafeUnpin,
&'a CodeUnit: UnsafeUnpin,
*const ArcInner<CodeUnitInner> is !null: UnsafeUnpin,
PhantomData<ArcInner<CodeUnitInner>>: UnsafeUnpin,
&'a BTreeSet<(ProjectFile, String)>: UnsafeUnpin,
&'a [ImportEdge]: UnsafeUnpin,
&'a HashMap<String, Vec<ModuleBindingEvent>, FxBuildHasher>: UnsafeUnpin,
&'a HashMap<String, Vec<ClassifiedModuleBindingEvent>, FxBuildHasher>: UnsafeUnpin,
&'a [PythonImportBinding]: UnsafeUnpin,
&'a HashMap<CodeUnit, LocalBindingsSnapshot<String>, FxBuildHasher>: UnsafeUnpin,
&'a [ScopeRangeEntry]: UnsafeUnpin,
&'a mut BTreeSet<UsageHit>: UnsafeUnpin,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more