Skip to main content

PlaceholderConst

Type Alias PlaceholderConst 

Source
pub type PlaceholderConst<I> = Placeholder<I, BoundConst<I>>;

Aliased Type§

pub struct PlaceholderConst<I> {
    pub universe: UniverseIndex,
    pub bound: BoundConst<I>,
    _tcx: PhantomData<fn() -> I>,
}

Fields§

§universe: UniverseIndex§bound: BoundConst<I>§_tcx: PhantomData<fn() -> I>

Implementations§

Source§

impl<I: Interner> PlaceholderConst<I>

Source

pub fn universe(self) -> UniverseIndex

Source

pub fn var(self) -> BoundVar

Source

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

Source

pub fn new(ui: UniverseIndex, bound: BoundConst<I>) -> Self

Source

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

Source

pub fn find_const_ty_from_env(self, env: I::ParamEnv) -> I::Ty

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: 8 bytes