Trait text_layout::Num
source · 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§
Object Safety§
This trait is not object safe.