pub trait FloatPoint<N>: IntoIntegerPoint + Point<Scalar = f32> {
// Required methods
fn round(self) -> Self;
fn floor(self) -> Self;
fn ceil(self) -> Self;
fn fract(self) -> Self;
// Provided method
fn floor_int(self) -> Self::IntPoint { ... }
}
Required Methods§
fn round(self) -> Self
fn floor(self) -> Self
fn ceil(self) -> Self
fn fract(self) -> Self
Provided Methods§
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.