#[repr(i32)]pub enum PdfiumRotation {
None = 0,
Cw90 = 1,
Cw180 = 2,
Cw270 = 3,
}Expand description
Rotation transformation that can be applied to a PdfiumPage and during rendering
Variants§
None = 0
No rotation
Cw90 = 1
90° clockwise
Cw180 = 2
180° clockwise
Cw270 = 3
270° clockwise (90° counterclockwise)
Implementations§
Source§impl PdfiumRotation
impl PdfiumRotation
Sourcepub fn needs_transpose(&self) -> bool
pub fn needs_transpose(&self) -> bool
Checks if rotation is 90°/270° and height/width needs to be flipped
Trait Implementations§
Source§impl Add for PdfiumRotation
impl Add for PdfiumRotation
Source§impl Clone for PdfiumRotation
impl Clone for PdfiumRotation
Source§fn clone(&self) -> PdfiumRotation
fn clone(&self) -> PdfiumRotation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PdfiumRotation
impl Debug for PdfiumRotation
Source§impl From<i32> for PdfiumRotation
impl From<i32> for PdfiumRotation
Source§impl PartialEq for PdfiumRotation
impl PartialEq for PdfiumRotation
impl Copy for PdfiumRotation
impl Eq for PdfiumRotation
impl StructuralPartialEq for PdfiumRotation
Auto Trait Implementations§
impl Freeze for PdfiumRotation
impl RefUnwindSafe for PdfiumRotation
impl Send for PdfiumRotation
impl Sync for PdfiumRotation
impl Unpin for PdfiumRotation
impl UnsafeUnpin for PdfiumRotation
impl UnwindSafe for PdfiumRotation
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