Skip to main content

MuDim

Trait MuDim 

Source
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§

Source

const UNITS: &'static [&'static [u8]] = _

The set of math units; by default, only mu

Required Methods§

Source

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.

Implementors§

Source§

impl MuDim for Mu