pub struct CastInfo {
pub from_ty: Type,
pub to_ty: Type,
pub cast_kind: CastKind,
}Expand description
The cast is unchecked: codegen trusts the typechecker’s narrowing decision. If the predicate didn’t actually prove what the narrowing claims, the Wasm-level cast traps.
Fields§
§from_ty: Type§to_ty: Type§cast_kind: CastKindTrait Implementations§
impl Eq for CastInfo
impl StructuralPartialEq for CastInfo
Auto Trait Implementations§
impl Freeze for CastInfo
impl RefUnwindSafe for CastInfo
impl Send for CastInfo
impl Sync for CastInfo
impl Unpin for CastInfo
impl UnsafeUnpin for CastInfo
impl UnwindSafe for CastInfo
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.