pub enum TypeTrap<'a> {
Runtime {
actual_type_id: &'a BV,
expected_id: &'a BV,
},
StaticallyDischarged,
}Expand description
The type-check mode of a call_indirect, per its table — the synth-BV
mirror of ordeal::trap::TypeTrap.
Variants§
Runtime
Heterogeneous table: the element type is checked at runtime against the call’s expected type id.
Fields
StaticallyDischarged
Closed-world / homogeneous table: the signature is discharged at compile
time by the selector (synth’s default — ArmOp::CallIndirect.type_check
is None), so there is no runtime type-id and the type clause is false.
Auto Trait Implementations§
impl<'a> Freeze for TypeTrap<'a>
impl<'a> RefUnwindSafe for TypeTrap<'a>
impl<'a> Send for TypeTrap<'a>
impl<'a> Sync for TypeTrap<'a>
impl<'a> Unpin for TypeTrap<'a>
impl<'a> UnsafeUnpin for TypeTrap<'a>
impl<'a> UnwindSafe for TypeTrap<'a>
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