pub trait TryTruncateInto<T, E> {
    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§

Convert one type to another by rounding to the nearest integer towards zero.

Implementations on Foreign Types§

Implementors§