Struct ra_ap_hir_ty::TyBuilder [−][src]
pub struct TyBuilder<D> { /* fields omitted */ }
Expand description
This is a builder for Ty
or anything that needs a Substitution
.
Implementations
pub fn assoc_type_projection(
db: &dyn HirDatabase,
type_alias: TypeAliasId
) -> TyBuilder<TypeAliasId>
Auto Trait Implementations
impl<D> RefUnwindSafe for TyBuilder<D> where
D: RefUnwindSafe,
impl<D> UnwindSafe for TyBuilder<D> where
D: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
impl<T> Any for T where
T: Any,