pub trait MuDim:
Display
+ Debug
+ Clone
+ Copy
+ Neg<Output = Self>
+ Add<Output = Self>
+ PartialEq
+ Ord
+ Default {
const UNITS: &'static [&'static [u8]] = _;
// Required method
fn from_float<ET: EngineTypes>(
engine: &EngineReferences<'_, ET>,
float: f64,
dim: &[u8],
) -> Self;
}Expand description
A math dimension; i.e. the base component of an \mskip
Provided Associated Constants§
Required Methods§
Sourcefn from_float<ET: EngineTypes>(
engine: &EngineReferences<'_, ET>,
float: f64,
dim: &[u8],
) -> Self
fn from_float<ET: EngineTypes>( engine: &EngineReferences<'_, ET>, float: f64, dim: &[u8], ) -> Self
Converts a floating-point number and a unit to a Self. The unit is assumed to be in Self::UNITS.
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.