Struct soroban_wasmi::core::F32
source · [−]pub struct F32(_);
Expand description
A NaN preserving f32
type.
Implementations
Trait Implementations
sourceimpl ArithmeticOps<F32> for F32
impl ArithmeticOps<F32> for F32
sourceimpl ExtendInto<F32> for i32
impl ExtendInto<F32> for i32
sourcefn extend_into(self) -> F32
fn extend_into(self) -> F32
Convert one type to another by extending with leading zeroes.
sourceimpl ExtendInto<F32> for u32
impl ExtendInto<F32> for u32
sourcefn extend_into(self) -> F32
fn extend_into(self) -> F32
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 Float<F32> for F32
impl Float<F32> for F32
sourcefn round(self) -> F32
fn round(self) -> F32
Returns the nearest integer to a number. Round half-way cases away from 0.0.
sourcefn nearest(self) -> F32
fn nearest(self) -> F32
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<F32> for UntypedValue
impl From<F32> for UntypedValue
sourcefn from(value: F32) -> UntypedValue
fn from(value: F32) -> UntypedValue
Converts to this type from the input type.
sourceimpl From<UntypedValue> for F32
impl From<UntypedValue> for F32
sourcefn from(untyped: UntypedValue) -> F32
fn from(untyped: UntypedValue) -> F32
Converts to this type from the input type.
sourceimpl LittleEndianConvert for F32
impl LittleEndianConvert for F32
type Bytes = <u32 as LittleEndianConvert>::Bytes
type Bytes = <u32 as LittleEndianConvert>::Bytes
The little endian bytes representation.
sourcefn into_le_bytes(self) -> <F32 as LittleEndianConvert>::Bytes
fn into_le_bytes(self) -> <F32 as LittleEndianConvert>::Bytes
Converts
self
into little endian bytes.sourcefn from_le_bytes(bytes: <F32 as LittleEndianConvert>::Bytes) -> F32
fn from_le_bytes(bytes: <F32 as LittleEndianConvert>::Bytes) -> F32
Converts little endian bytes into
Self
.sourceimpl<T> PartialOrd<T> for F32where
T: Into<F32> + Copy,
impl<T> PartialOrd<T> for F32where
T: Into<F32> + 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<F32> for F32
impl TransmuteInto<F32> for F32
sourcefn transmute_into(self) -> F32
fn transmute_into(self) -> F32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F32> for f32
impl TransmuteInto<F32> for f32
sourcefn transmute_into(self) -> F32
fn transmute_into(self) -> F32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F32> for i32
impl TransmuteInto<F32> for i32
sourcefn transmute_into(self) -> F32
fn transmute_into(self) -> F32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<F32> for u32
impl TransmuteInto<F32> for u32
sourcefn transmute_into(self) -> F32
fn transmute_into(self) -> F32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<f32> for F32
impl TransmuteInto<f32> for F32
sourcefn transmute_into(self) -> f32
fn transmute_into(self) -> f32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<i32> for F32
impl TransmuteInto<i32> for F32
sourcefn transmute_into(self) -> i32
fn transmute_into(self) -> i32
Reinterprets the bits of a value of one type as another type.
sourceimpl TransmuteInto<u32> for F32
impl TransmuteInto<u32> for F32
sourcefn transmute_into(self) -> u32
fn transmute_into(self) -> u32
Reinterprets the bits of a value of one type as another type.
sourceimpl TruncateSaturateInto<i32> for F32
impl TruncateSaturateInto<i32> for F32
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 F32
impl TruncateSaturateInto<i64> for F32
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 F32
impl TruncateSaturateInto<u32> for F32
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 F32
impl TruncateSaturateInto<u64> for F32
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 F32
impl TryTruncateInto<i32, TrapCode> for F32
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 F32
impl TryTruncateInto<i64, TrapCode> for F32
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 F32
impl TryTruncateInto<u32, TrapCode> for F32
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 F32
impl TryTruncateInto<u64, TrapCode> for F32
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 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
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