pub struct TlsEntry<'tcx> {
pub data: BTreeMap<ThreadId, Pointer>,
pub dtor: Option<(Instance<'tcx>, Span)>,
}Fields§
§data: BTreeMap<ThreadId, Pointer>The data for this key. Absence of data for a thread ID is used to represent NULL. (We normalize this early to avoid having to do a NULL-ptr-test each time we access the data.)
dtor: Option<(Instance<'tcx>, Span)>Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for TlsEntry<'tcx>
impl<'tcx> !UnwindSafe for TlsEntry<'tcx>
impl<'tcx> DynSend for TlsEntry<'tcx>where
BTreeMap<ThreadId, Pointer<Option<Provenance>>>: DynSend,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: DynSend,
&'tcx RawList<(), GenericArg<'tcx>>: DynSend,
impl<'tcx> DynSync for TlsEntry<'tcx>where
BTreeMap<ThreadId, Pointer<Option<Provenance>>>: DynSync,
Interned<'tcx, WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>>: DynSync,
RawList<(), GenericArg<'tcx>>: DynSync,
impl<'tcx> Forget for TlsEntry<'tcx>
impl<'tcx> Freeze for TlsEntry<'tcx>where
*const LeafNode<ThreadId, Pointer<Option<Provenance>>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ThreadId, Pointer<Option<Provenance>>)>>: Freeze,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Freeze,
&'tcx RawList<(), GenericArg<'tcx>>: Freeze,
impl<'tcx> Move for TlsEntry<'tcx>
impl<'tcx> Send for TlsEntry<'tcx>where
NodeRef<Owned, ThreadId, Pointer<Option<Provenance>>, LeafOrInternal>: Send,
BoxRaw<(ThreadId, Pointer<Option<Provenance>>)>: Send,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: Send,
&'tcx RawList<(), GenericArg<'tcx>>: Send,
impl<'tcx> Sync for TlsEntry<'tcx>where
NodeRef<Owned, ThreadId, Pointer<Option<Provenance>>, LeafOrInternal>: Sync,
BoxRaw<(ThreadId, Pointer<Option<Provenance>>)>: Sync,
AdtDef<'tcx>: Sync,
GenericArgs<'tcx>: Sync,
DefId: Sync,
Ty<'tcx>: Sync,
Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>: Sync,
Pattern<'tcx>: Sync,
Interned<'tcx, RegionKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), BoundVariableKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), Ty<'tcx>>: Sync,
&'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>: Sync,
ParamTy: Sync,
ErrorGuaranteed: Sync,
InternalBitFlags: Sync,
RawList<(), GenericArg<'tcx>>: Sync,
impl<'tcx> Unpin for TlsEntry<'tcx>
impl<'tcx> UnsafeUnpin for TlsEntry<'tcx>where
*const LeafNode<ThreadId, Pointer<Option<Provenance>>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ThreadId, Pointer<Option<Provenance>>)>>: UnsafeUnpin,
&'tcx WithCachedTypeInfo<TyKind<TyCtxt<'tcx>>>: UnsafeUnpin,
&'tcx RawList<(), GenericArg<'tcx>>: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes