Type Alias rustc_middle::ty::PlaceholderType
source · pub type PlaceholderType = Placeholder<BoundTy>;
Aliased Type§
struct PlaceholderType {
pub universe: UniverseIndex,
pub bound: BoundTy,
}
Fields§
§universe: UniverseIndex
§bound: BoundTy
Trait Implementations§
source§impl<T: Clone> Clone for Placeholder<T>
impl<T: Clone> Clone for Placeholder<T>
source§fn clone(&self) -> Placeholder<T>
fn clone(&self) -> Placeholder<T>
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 moresource§impl<T: Debug> Debug for Placeholder<T>
impl<T: Debug> Debug for Placeholder<T>
source§impl<'tcx, T, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for Placeholder<T>where
T: Decodable<__D>,
impl<'tcx, T, __D: TyDecoder<I = TyCtxt<'tcx>>> Decodable<__D> for Placeholder<T>where T: Decodable<__D>,
source§impl<'tcx, T, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for Placeholder<T>where
T: Encodable<__E>,
impl<'tcx, T, __E: TyEncoder<I = TyCtxt<'tcx>>> Encodable<__E> for Placeholder<T>where T: Encodable<__E>,
source§impl<T: Hash> Hash for Placeholder<T>
impl<T: Hash> Hash for Placeholder<T>
source§impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Placeholder<T>where
T: HashStable<StableHashingContext<'__ctx>>,
impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Placeholder<T>where T: HashStable<StableHashingContext<'__ctx>>,
fn hash_stable( &self, __hcx: &mut StableHashingContext<'__ctx>, __hasher: &mut StableHasher )
source§impl<T: Ord> Ord for Placeholder<T>
impl<T: Ord> Ord for Placeholder<T>
source§fn cmp(&self, other: &Placeholder<T>) -> Ordering
fn cmp(&self, other: &Placeholder<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<Placeholder<T>> for Placeholder<T>
impl<T: PartialEq> PartialEq<Placeholder<T>> for Placeholder<T>
source§fn eq(&self, other: &Placeholder<T>) -> bool
fn eq(&self, other: &Placeholder<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<Placeholder<T>> for Placeholder<T>
impl<T: PartialOrd> PartialOrd<Placeholder<T>> for Placeholder<T>
source§fn partial_cmp(&self, other: &Placeholder<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Placeholder<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for Placeholder<BoundTy>
impl<'tcx> TypeFoldable<TyCtxt<'tcx>> for Placeholder<BoundTy>
source§fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>(
self,
_: &mut F
) -> Result<Self, F::Error>
fn try_fold_with<F: FallibleTypeFolder<TyCtxt<'tcx>>>( self, _: &mut F ) -> Result<Self, F::Error>
source§impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Placeholder<BoundTy>
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Placeholder<BoundTy>
source§fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>(
&self,
_: &mut F
) -> ControlFlow<F::BreakTy>
fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>( &self, _: &mut F ) -> ControlFlow<F::BreakTy>
impl<T: Copy> Copy for Placeholder<T>
impl<T: Eq> Eq for Placeholder<T>
impl<T> StructuralEq for Placeholder<T>
impl<T> StructuralPartialEq for Placeholder<T>
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: 20 bytes