pub trait Numeric<I: TeXInt>:
Eq
+ Ord
+ Neg<Output = Self>
+ Add<Self, Output = Self>
+ Mul<I, Output = Self>
+ Div<I, Output = Self>
+ Copy
+ Default
+ Debug
+ Display {
// Required method
fn scale(&self, times: I, div: I) -> Self;
}Expand description
Generalization of integers, dimensions, skips, etc. In particular, provides a scale method to scale all of them by their integer type.
Required 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.