Struct wasmi::nan_preserving_float::F64
source · pub struct F64(_);
Implementations§
source§impl F64
impl F64
pub fn from_bits(other: u64) -> Self
pub fn to_bits(self) -> u64
pub fn from_float(fl: f64) -> Self
pub fn to_float(self) -> f64
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<F64> for RuntimeValue
impl From<F64> for RuntimeValue
source§impl FromRuntimeValue for F64
impl FromRuntimeValue for F64
source§fn from_runtime_value(val: RuntimeValue) -> Option<Self>
fn from_runtime_value(val: RuntimeValue) -> Option<Self>
source§impl LittleEndianConvert for F64
impl LittleEndianConvert for F64
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<F64> + Copy> PartialOrd<T> for F64
impl<T: Into<F64> + Copy> PartialOrd<T> for F64
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 F64
Auto Trait Implementations§
impl RefUnwindSafe for F64
impl Send for F64
impl Sync for F64
impl Unpin for F64
impl UnwindSafe for F64
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