pub struct MarkerDatabase<'tcx> {
tcx: TyCtxt<'tcx>,
annotations: FxHashMap<DefId, Vec<Annotation>>,
external_annotations: HashMap<DefId, Vec<MarkerAnnotation>>,
reachable_markers: Cache<MaybeMonomorphized<'tcx>, Box<[Identifier]>>,
config: &'static Args,
type_markers: Cache<Ty<'tcx>, Box<TypeMarkers>>,
body_cache: Rc<BodyCache<'tcx>>,
included_crates: FxHashSet<CrateNum>,
stubs: FxHashMap<DefId, &'static Stub>,
}
Expand description
The structure inside of MarkerCtx
.
Fields§
§tcx: TyCtxt<'tcx>
§annotations: FxHashMap<DefId, Vec<Annotation>>
Cache for parsed local annotations. They are created with
[MarkerCtx::retrieve_local_annotations_for
].
external_annotations: HashMap<DefId, Vec<MarkerAnnotation>>
§reachable_markers: Cache<MaybeMonomorphized<'tcx>, Box<[Identifier]>>
Cache whether markers are reachable transitively.
config: &'static Args
Configuration options
type_markers: Cache<Ty<'tcx>, Box<TypeMarkers>>
§body_cache: Rc<BodyCache<'tcx>>
§included_crates: FxHashSet<CrateNum>
§stubs: FxHashMap<DefId, &'static Stub>
Implementations§
Trait Implementations§
Source§impl<'tcx> From<MarkerDatabase<'tcx>> for MarkerCtx<'tcx>
impl<'tcx> From<MarkerDatabase<'tcx>> for MarkerCtx<'tcx>
Source§fn from(value: MarkerDatabase<'tcx>) -> Self
fn from(value: MarkerDatabase<'tcx>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'tcx> !Freeze for MarkerDatabase<'tcx>
impl<'tcx> !RefUnwindSafe for MarkerDatabase<'tcx>
impl<'tcx> !Send for MarkerDatabase<'tcx>
impl<'tcx> !Sync for MarkerDatabase<'tcx>
impl<'tcx> Unpin for MarkerDatabase<'tcx>
impl<'tcx> !UnwindSafe for MarkerDatabase<'tcx>
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> 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