Trait wasmi_core::TryTruncateInto
source · pub trait TryTruncateInto<T, E> {
// Required method
fn try_truncate_into(self) -> Result<T, E>;
}
Expand description
Convert one type to another by rounding to the nearest integer towards zero.
Errors
Traps when the input float cannot be represented by the target integer or when the input float is NaN.
Required Methods§
sourcefn try_truncate_into(self) -> Result<T, E>
fn try_truncate_into(self) -> Result<T, E>
Convert one type to another by rounding to the nearest integer towards zero.