Enum chalk_integration::lowering::env::TypeLookup
source · pub enum TypeLookup<'k> {
Parameter(&'k WithKind<ChalkIr, BoundVar>),
Adt(AdtId<ChalkIr>),
FnDef(FnDefId<ChalkIr>),
Closure(ClosureId<ChalkIr>),
Opaque(OpaqueTyId<ChalkIr>),
Foreign(ForeignDefId<ChalkIr>),
Trait(TraitId<ChalkIr>),
Coroutine(CoroutineId<ChalkIr>),
}
Variants§
Parameter(&'k WithKind<ChalkIr, BoundVar>)
Adt(AdtId<ChalkIr>)
FnDef(FnDefId<ChalkIr>)
Closure(ClosureId<ChalkIr>)
Opaque(OpaqueTyId<ChalkIr>)
Foreign(ForeignDefId<ChalkIr>)
Trait(TraitId<ChalkIr>)
Coroutine(CoroutineId<ChalkIr>)
Auto Trait Implementations§
impl<'k> Freeze for TypeLookup<'k>
impl<'k> RefUnwindSafe for TypeLookup<'k>
impl<'k> Send for TypeLookup<'k>
impl<'k> Sync for TypeLookup<'k>
impl<'k> Unpin for TypeLookup<'k>
impl<'k> UnwindSafe for TypeLookup<'k>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.