[][src]Struct genpdf::Mm

pub struct Mm(_);

A length measured in millimeters.

genpdf always uses millimeters as its length unit, except for the font size that is measured in points.

If you want to convert pixels or points into millimeters, you can use the printpdf::Pt and printpdf::Px types.

Implementations

impl Mm[src]

pub fn max(self, other: Mm) -> Mm[src]

Returns the maximum of this value and the given value.

Trait Implementations

impl Add<Mm> for Mm[src]

type Output = Mm

The resulting type after applying the + operator.

impl AddAssign<Mm> for Mm[src]

impl Clone for Mm[src]

impl Copy for Mm[src]

impl Debug for Mm[src]

impl Default for Mm[src]

impl<__RhsT> Div<__RhsT> for Mm where
    f64: Div<__RhsT, Output = f64>, 
[src]

type Output = Mm

The resulting type after applying the / operator.

impl<__RhsT> DivAssign<__RhsT> for Mm where
    f64: DivAssign<__RhsT>, 
[src]

impl From<Mm> for f64[src]

impl From<Mm> for Mm[src]

impl From<Mm> for Mm[src]

impl From<Mm> for Pt[src]

impl From<Pt> for Mm[src]

impl From<f32> for Mm[src]

impl From<f64> for Mm[src]

impl From<i16> for Mm[src]

impl From<i32> for Mm[src]

impl From<i8> for Mm[src]

impl From<u16> for Mm[src]

impl From<u32> for Mm[src]

impl From<u8> for Mm[src]

impl<__RhsT> Mul<__RhsT> for Mm where
    f64: Mul<__RhsT, Output = f64>, 
[src]

type Output = Mm

The resulting type after applying the * operator.

impl<__RhsT> MulAssign<__RhsT> for Mm where
    f64: MulAssign<__RhsT>, 
[src]

impl PartialEq<Mm> for Mm[src]

impl PartialOrd<Mm> for Mm[src]

impl StructuralPartialEq for Mm[src]

impl Sub<Mm> for Mm[src]

type Output = Mm

The resulting type after applying the - operator.

impl SubAssign<Mm> for Mm[src]

impl Sum<Mm> for Mm[src]

Auto Trait Implementations

impl RefUnwindSafe for Mm

impl Send for Mm

impl Sync for Mm

impl Unpin for Mm

impl UnwindSafe for Mm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.