pub trait NumSet: Clone + Debug {
type Int: TeXInt;
type Dim: TeXDimen + Numeric<Self::Int>;
type MuDim: MuDim + Numeric<Self::Int>;
// Required methods
fn mudim_to_dim(mudim: Self::MuDim, em: Self::Dim) -> Self::Dim;
fn dim_to_int(dim: Self::Dim) -> Self::Int;
// Provided method
fn muskip_to_skip(
muskip: MuSkip<Self::MuDim>,
em: Self::Dim,
) -> Skip<Self::Dim> { ... }
}Expand description
Bundles the various numerical types used in some engine, and converts between them.
Required Associated Types§
Required Methods§
Sourcefn mudim_to_dim(mudim: Self::MuDim, em: Self::Dim) -> Self::Dim
fn mudim_to_dim(mudim: Self::MuDim, em: Self::Dim) -> Self::Dim
Converts a Self::MuDim to a Self::Dim, using the current font’s em.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".