pub type OpaqueTypeKey<'tcx> = OpaqueTypeKey<TyCtxt<'tcx>>;
Aliased Type§
struct OpaqueTypeKey<'tcx> {
pub def_id: LocalDefId,
pub args: &'tcx RawList<(), GenericArg<'tcx>>,
}
Fields§
§def_id: LocalDefId
§args: &'tcx RawList<(), GenericArg<'tcx>>
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: 16 bytes
Implementations
Source§impl<I> OpaqueTypeKey<I>where
I: Interner,
impl<I> OpaqueTypeKey<I>where
I: Interner,
pub fn iter_captured_args( self, cx: I, ) -> impl Iterator<Item = (usize, <I as Interner>::GenericArg)>
pub fn fold_captured_lifetime_args( self, cx: I, f: impl FnMut(<I as Interner>::Region) -> <I as Interner>::Region, ) -> OpaqueTypeKey<I>
Trait Implementations
Source§impl<I> Clone for OpaqueTypeKey<I>where
I: Interner,
impl<I> Clone for OpaqueTypeKey<I>where
I: Interner,
Source§fn clone(&self) -> OpaqueTypeKey<I>
fn clone(&self) -> OpaqueTypeKey<I>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more