Trait TruncTo

Source
pub trait TruncTo {
    // Required method
    const fn trunc_to(self, digits: i64) -> Self;
}
Expand description

✅ Truncates to the specified number of fractional digits.

§Panics

This function never panics.

Required Methods§

Source

const fn trunc_to(self, digits: i64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§