Struct rustc_symbol_mangling::ty::Placeholder [−][src]
pub struct Placeholder<T> {
pub universe: UniverseIndex,
pub name: T,
}Expand description
The “placeholder index” fully defines a placeholder region, type, or const. Placeholders are identified by both a universe, as well as a name residing within that universe. Distinct bound regions/types/consts within the same universe simply have an unknown relationship to one another.
Fields
universe: UniverseIndexname: TAuto Trait Implementations
impl<T> RefUnwindSafe for Placeholder<T> where
T: RefUnwindSafe,
impl<T> Send for Placeholder<T> where
T: Send,
impl<T> Sync for Placeholder<T> where
T: Sync,
impl<T> Unpin for Placeholder<T> where
T: Unpin,
impl<T> UnwindSafe for Placeholder<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.