pub type PlaceholderType = Placeholder<BoundTy>;
Aliased Type§
struct PlaceholderType {
pub universe: UniverseIndex,
pub bound: BoundTy,
}
Fields§
§universe: UniverseIndex
§bound: BoundTy
Trait Implementations§
Source§impl PlaceholderLike for PlaceholderType
impl PlaceholderLike for PlaceholderType
fn universe(self) -> UniverseIndex
fn var(self) -> BoundVar
fn with_updated_universe(self, ui: UniverseIndex) -> Self
fn new(ui: UniverseIndex, var: BoundVar) -> Self
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<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 for Placeholder<T>
impl<T: PartialEq> PartialEq for Placeholder<T>
Source§impl<T: PartialOrd> PartialOrd for Placeholder<T>
impl<T: PartialOrd> PartialOrd for Placeholder<T>
Source§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) -> F::Result
fn visit_with<F: TypeVisitor<TyCtxt<'tcx>>>(&self, _: &mut F) -> F::Result
impl<T: Copy> Copy for Placeholder<T>
impl<T: Eq> Eq 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