pub trait Numwhere
Self: Default + Debug + Copy + PartialOrd<Self> + Add<Output = Self> + AddAssign + Sub<Output = Self> + SubAssign + Mul<Output = Self> + Div<Output = Self>,{
const INFINITY: Self;
const NEG_INFINITY: Self;
// Required methods
fn from(i: i16) -> Self;
fn abs(self) -> Self;
fn powi(self, y: u32) -> Self;
// Provided method
fn rat(num: i16, denom: i16) -> Self { ... }
}Expand description
A trait that describes the operations necessary for this crate’s layout algorithms.
Required Associated Constants§
const INFINITY: Self
const NEG_INFINITY: Self
Required Methods§
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.