pub enum MentionedItem<'tcx> {
Fn(Ty<'tcx>),
Drop(Ty<'tcx>),
UnsizeCast {
source_ty: Ty<'tcx>,
target_ty: Ty<'tcx>,
},
Closure(Ty<'tcx>),
}
Expand description
Some item that needs to monomorphize successfully for a MIR body to be considered well-formed.
Variants§
Fn(Ty<'tcx>)
A function that gets called. We don’t necessarily know its precise type yet, since it can be hidden behind a generic.
Drop(Ty<'tcx>)
A type that has its drop shim called.
UnsizeCast
Unsizing casts might require vtables, so we have to record them.
Closure(Ty<'tcx>)
A closure that is coerced to a function pointer.
Auto Trait Implementations§
impl<'tcx> Freeze for MentionedItem<'tcx>
impl<'tcx> !RefUnwindSafe for MentionedItem<'tcx>
impl<'tcx> Send for MentionedItem<'tcx>
impl<'tcx> Sync for MentionedItem<'tcx>
impl<'tcx> Unpin for MentionedItem<'tcx>
impl<'tcx> !UnwindSafe for MentionedItem<'tcx>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.