Struct soroban_wasmi::core::F64
source · [−]pub struct F64(_);
Expand description
A NaN preserving f64
type.
Implementations
Trait Implementations
sourceimpl ArithmeticOps<F64> for F64
impl ArithmeticOps<F64> for F64
sourceimpl ExtendInto<F64> for F32
impl ExtendInto<F64> for F32
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F64> for f32
impl ExtendInto<F64> for f32
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F64> for i32
impl ExtendInto<F64> for i32
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F64> for i64
impl ExtendInto<F64> for i64
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F64> for u32
impl ExtendInto<F64> for u32
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F64> for u64
impl ExtendInto<F64> for u64
sourcefn extend_into(self) -> F64
fn extend_into(self) -> F64
Convert one type to another by extending with leading zeroes.
sourceimpl Float<F64> for F64
impl Float<F64> for F64
sourcefn round(self) -> F64
fn round(self) -> F64
Returns the nearest integer to a number. Round half-way cases away from 0.0.
sourcefn nearest(self) -> F64
fn nearest(self) -> F64
Returns the nearest integer to a number. Ties are round to even number.
sourcefn is_sign_positive(self) -> bool
fn is_sign_positive(self) -> bool
Returns
true
if the sign of the number is positive.sourcefn is_sign_negative(self) -> bool
fn is_sign_negative(self) -> bool
Returns
true
if the sign of the number is negative.sourceimpl From<F64> for UntypedValue
impl From<F64> for UntypedValue
sourcefn from(value: F64) -> UntypedValue
fn from(value: F64) -> UntypedValue
Converts to this type from the input type.
sourceimpl From<UntypedValue> for F64
impl From<UntypedValue> for F64
sourcefn from(untyped: UntypedValue) -> F64
fn from(untyped: UntypedValue) -> F64
Converts to this type from the input type.
sourceimpl LittleEndianConvert for F64
impl LittleEndianConvert for F64
type Bytes = <u64 as LittleEndianConvert>::Bytes
type Bytes = <u64 as LittleEndianConvert>::Bytes
The little endian bytes representation.
sourcefn into_le_bytes(self) -> <F64 as LittleEndianConvert>::Bytes
fn into_le_bytes(self) -> <F64 as LittleEndianConvert>::Bytes
Converts
self
into little endian bytes.sourcefn from_le_bytes(bytes: <F64 as LittleEndianConvert>::Bytes) -> F64
fn from_le_bytes(bytes: <F64 as LittleEndianConvert>::Bytes) -> F64
Converts little endian bytes into
Self
.sourceimpl<T> PartialOrd<T> for F64where
T: Into<F64> + Copy,
impl<T> PartialOrd<T> for F64where
T: Into<F64> + Copy,
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl TransmuteInto<F64> for F64
impl TransmuteInto<F64> for F64
sourcefn transmute_into(self) -> F64
fn transmute_into(self) -> F64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F64> for f64
impl TransmuteInto<F64> for f64
sourcefn transmute_into(self) -> F64
fn transmute_into(self) -> F64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F64> for i64
impl TransmuteInto<F64> for i64
sourcefn transmute_into(self) -> F64
fn transmute_into(self) -> F64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F64> for u64
impl TransmuteInto<F64> for u64
sourcefn transmute_into(self) -> F64
fn transmute_into(self) -> F64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<f64> for F64
impl TransmuteInto<f64> for F64
sourcefn transmute_into(self) -> f64
fn transmute_into(self) -> f64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<i64> for F64
impl TransmuteInto<i64> for F64
sourcefn transmute_into(self) -> i64
fn transmute_into(self) -> i64
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<u64> for F64
impl TransmuteInto<u64> for F64
sourcefn transmute_into(self) -> u64
fn transmute_into(self) -> u64
Reinterprets the bits of a value of one type as another type.
sourceimpl TruncateSaturateInto<i32> for F64
impl TruncateSaturateInto<i32> for F64
sourcefn truncate_saturate_into(self) -> i32
fn truncate_saturate_into(self) -> i32
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TruncateSaturateInto<i64> for F64
impl TruncateSaturateInto<i64> for F64
sourcefn truncate_saturate_into(self) -> i64
fn truncate_saturate_into(self) -> i64
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TruncateSaturateInto<u32> for F64
impl TruncateSaturateInto<u32> for F64
sourcefn truncate_saturate_into(self) -> u32
fn truncate_saturate_into(self) -> u32
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TruncateSaturateInto<u64> for F64
impl TruncateSaturateInto<u64> for F64
sourcefn truncate_saturate_into(self) -> u64
fn truncate_saturate_into(self) -> u64
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TryTruncateInto<i32, TrapCode> for F64
impl TryTruncateInto<i32, TrapCode> for F64
sourcefn try_truncate_into(self) -> Result<i32, TrapCode>
fn try_truncate_into(self) -> Result<i32, TrapCode>
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TryTruncateInto<i64, TrapCode> for F64
impl TryTruncateInto<i64, TrapCode> for F64
sourcefn try_truncate_into(self) -> Result<i64, TrapCode>
fn try_truncate_into(self) -> Result<i64, TrapCode>
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TryTruncateInto<u32, TrapCode> for F64
impl TryTruncateInto<u32, TrapCode> for F64
sourcefn try_truncate_into(self) -> Result<u32, TrapCode>
fn try_truncate_into(self) -> Result<u32, TrapCode>
Convert one type to another by rounding to the nearest integer towards zero.
sourceimpl TryTruncateInto<u64, TrapCode> for F64
impl TryTruncateInto<u64, TrapCode> for F64
sourcefn try_truncate_into(self) -> Result<u64, TrapCode>
fn try_truncate_into(self) -> Result<u64, TrapCode>
Convert one type to another by rounding to the nearest integer towards zero.
impl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T1> DecodeUntypedSlice for T1where
T1: From<UntypedValue>,
impl<T1> DecodeUntypedSlice for T1where
T1: From<UntypedValue>,
sourcefn decode_untyped_slice(results: &[UntypedValue]) -> Result<T1, UntypedError>
fn decode_untyped_slice(results: &[UntypedValue]) -> Result<T1, UntypedError>
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
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 morefn 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 morefn 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 morefn 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