Struct wasmi::nan_preserving_float::F32
source · pub struct F32(_);
Implementations§
source§impl F32
impl F32
pub fn from_bits(other: u32) -> Self
pub fn to_bits(self) -> u32
pub fn from_float(fl: f32) -> Self
pub fn to_float(self) -> f32
pub fn is_nan(self) -> bool
pub fn abs(self) -> Self
pub fn fract(self) -> Self
pub fn min(self, other: Self) -> Self
pub fn max(self, other: Self) -> Self
Trait Implementations§
source§impl From<F32> for RuntimeValue
impl From<F32> for RuntimeValue
source§impl FromRuntimeValue for F32
impl FromRuntimeValue for F32
source§fn from_runtime_value(val: RuntimeValue) -> Option<Self>
fn from_runtime_value(val: RuntimeValue) -> Option<Self>
source§impl LittleEndianConvert for F32
impl LittleEndianConvert for F32
source§fn into_little_endian(self, buffer: &mut [u8])
fn into_little_endian(self, buffer: &mut [u8])
Convert to little endian buffer.
source§impl<T: Into<F32> + Copy> PartialOrd<T> for F32
impl<T: Into<F32> + Copy> PartialOrd<T> for F32
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for F32
Auto Trait Implementations§
impl RefUnwindSafe for F32
impl Send for F32
impl Sync for F32
impl Unpin for F32
impl UnwindSafe for F32
Blanket Implementations§
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresource§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresource§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresource§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more