pub struct ScanCtx<'a> {Show 17 fields
pub analyzer: CppGraphSource<'a>,
pub visibility: &'a VisibilityIndex<'a>,
pub file: &'a ProjectFile,
pub source: &'a str,
pub line_starts: &'a [usize],
pub spec: &'a TargetSpec,
pub target_group: &'a HashSet<CodeUnit>,
pub has_physically_visible_type_target: bool,
pub target_declaration_ranges: Vec<Range>,
pub bindings: LocalInferenceEngine<CppScanBinding>,
pub hits: &'a mut BTreeSet<UsageHit>,
pub unproven_hits: &'a mut BTreeSet<UsageHit>,
pub raw_match_count: &'a mut usize,
pub max_usages: usize,
pub limit_exceeded: &'a mut bool,
pub enclosing_cache: RefCell<HashMap<(usize, usize), EnclosingContext>>,
pub enclosing_owner_cache: RefCell<HashMap<CodeUnit, Option<CodeUnit>>>,
/* private fields */
}Fields§
§analyzer: CppGraphSource<'a>§visibility: &'a VisibilityIndex<'a>§file: &'a ProjectFile§source: &'a str§line_starts: &'a [usize]§spec: &'a TargetSpec§target_group: &'a HashSet<CodeUnit>§has_physically_visible_type_target: bool§target_declaration_ranges: Vec<Range>§bindings: LocalInferenceEngine<CppScanBinding>§hits: &'a mut BTreeSet<UsageHit>§unproven_hits: &'a mut BTreeSet<UsageHit>§raw_match_count: &'a mut usize§max_usages: usize§limit_exceeded: &'a mut bool§enclosing_cache: RefCell<HashMap<(usize, usize), EnclosingContext>>§enclosing_owner_cache: RefCell<HashMap<CodeUnit, Option<CodeUnit>>>Auto Trait Implementations§
impl<'a> !Freeze for ScanCtx<'a>
impl<'a> !RefUnwindSafe for ScanCtx<'a>
impl<'a> !Send for ScanCtx<'a>
impl<'a> !Sync for ScanCtx<'a>
impl<'a> !UnwindSafe for ScanCtx<'a>
impl<'a> Unpin for ScanCtx<'a>
impl<'a> UnsafeUnpin for ScanCtx<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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