## PlaceholderType

# Type Alias PlaceholderType

Source

    pub type PlaceholderType<'tcx> = Placeholder<TyCtxt<'tcx>, BoundTy>;

## Aliased Type§

    pub struct PlaceholderType<'tcx> {
        pub universe: UniverseIndex,
        pub bound: BoundTy,
        /* private fields */
    }

## Fields§

§`universe: UniverseIndex`§`bound: BoundTy`

## Trait Implementations§

Source§

### impl<'tcx> PlaceholderLike<TyCtxt<'tcx>> for PlaceholderType<'tcx>

Source§

#### type Bound = BoundTy

Source§

#### fn universe(self) -> UniverseIndex

Source§

#### fn var(self) -> BoundVar

Source§

#### fn with_updated_universe(self, ui: UniverseIndex) -> Self

Source§

#### fn new(ui: UniverseIndex, bound: BoundTy) -> Self

Source§

#### fn new_anon(ui: UniverseIndex, var: BoundVar) -> Self

Source§

### impl<'tcx, P: PrettyPrinter<'tcx>> Print<'tcx, P> for PlaceholderType<'tcx>

Source§

#### fn print(&self, p: &mut P) -> Result<(), PrintError>

## 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