pub struct Mm(pub(crate) f32);Expand description
A length measured in millimeters.
genpdfi 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.
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
Source§impl AddAssign for Mm
impl AddAssign for Mm
Source§fn add_assign(&mut self, __rhs: Self)
fn add_assign(&mut self, __rhs: Self)
Performs the
+= operation. Read moreSource§impl<__derive_more_Rhs> DivAssign<__derive_more_Rhs> for Mm
impl<__derive_more_Rhs> DivAssign<__derive_more_Rhs> for Mm
Source§fn div_assign(&mut self, __rhs: __derive_more_Rhs)
fn div_assign(&mut self, __rhs: __derive_more_Rhs)
Performs the
/= operation. Read moreSource§impl<__derive_more_Rhs> MulAssign<__derive_more_Rhs> for Mm
impl<__derive_more_Rhs> MulAssign<__derive_more_Rhs> for Mm
Source§fn mul_assign(&mut self, __rhs: __derive_more_Rhs)
fn mul_assign(&mut self, __rhs: __derive_more_Rhs)
Performs the
*= operation. Read moreSource§impl PartialOrd for Mm
impl PartialOrd for Mm
Source§impl SubAssign for Mm
impl SubAssign for Mm
Source§fn sub_assign(&mut self, __rhs: Self)
fn sub_assign(&mut self, __rhs: Self)
Performs the
-= operation. Read moreimpl Copy for Mm
impl StructuralPartialEq for Mm
Auto Trait Implementations§
impl Freeze for Mm
impl RefUnwindSafe for Mm
impl Send for Mm
impl Sync for Mm
impl Unpin for Mm
impl UnwindSafe for Mm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.