Struct pdfium_render::page::PdfPoints
source · pub struct PdfPoints {
pub value: f32,
}Expand description
Fields§
§value: f32Implementations§
source§impl PdfPoints
impl PdfPoints
sourcepub const fn zero() -> Self
pub const fn zero() -> Self
Creates a new PdfPoints object with the value 0.0.
Consider using the compile-time constant value PdfPoints::ZERO rather than calling this function directly.
sourcepub fn from_inches(inches: f32) -> Self
pub fn from_inches(inches: f32) -> Self
Creates a new PdfPoints object from the given measurement in inches.
sourcepub fn from_cm(cm: f32) -> Self
pub fn from_cm(cm: f32) -> Self
Creates a new PdfPoints object from the given measurement in centimeters.
Trait Implementations§
source§impl AddAssign<PdfPoints> for PdfPoints
impl AddAssign<PdfPoints> for PdfPoints
source§fn add_assign(&mut self, rhs: PdfPoints)
fn add_assign(&mut self, rhs: PdfPoints)
Performs the
+= operation. Read moresource§impl PartialEq<PdfPoints> for PdfPoints
impl PartialEq<PdfPoints> for PdfPoints
source§impl PartialOrd<PdfPoints> for PdfPoints
impl PartialOrd<PdfPoints> for PdfPoints
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl SubAssign<PdfPoints> for PdfPoints
impl SubAssign<PdfPoints> for PdfPoints
source§fn sub_assign(&mut self, rhs: PdfPoints)
fn sub_assign(&mut self, rhs: PdfPoints)
Performs the
-= operation. Read moreimpl Copy for PdfPoints
impl StructuralPartialEq for PdfPoints
Auto Trait Implementations§
impl RefUnwindSafe for PdfPoints
impl Send for PdfPoints
impl Sync for PdfPoints
impl Unpin for PdfPoints
impl UnwindSafe for PdfPoints
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