#[repr(C)]pub struct Ieee16(/* private fields */);
Expand description
An IEEE binary16 immediate floating point value, represented as a u16 containing the bit pattern.
We specifically avoid using a f16 here since some architectures may silently alter floats. See: https://github.com/bytecodealliance/wasmtime/pull/2251#discussion_r498508646
The PartialEq and Hash implementations are over the underlying bit pattern, but PartialOrd respects IEEE754 semantics.
All bit patterns are allowed.
Implementations§
Trait Implementations§
source§impl PartialOrd for Ieee16
impl PartialOrd for Ieee16
impl Copy for Ieee16
impl Eq for Ieee16
impl StructuralPartialEq for Ieee16
Auto Trait Implementations§
impl Freeze for Ieee16
impl RefUnwindSafe for Ieee16
impl Send for Ieee16
impl Sync for Ieee16
impl Unpin for Ieee16
impl UnwindSafe for Ieee16
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.