pub enum PageRotation {
Upright,
Ccw,
Cw,
}Expand description
Which way a page’s coordinate frame was turned so that predominantly rotated text reads along +x.
A page whose text mostly runs vertically is re-based so its dominant runs
read left-to-right: the items’ x/y/width/height and rotation
are then expressed in the turned frame, not in page coordinates. Region
boxes given in page coordinates must be turned the same way —
collect_text_in_region_in_frame does that, and
extract_text_with_positions_and_rotations_mem reports each page’s turn.
Variants§
Upright
Text reads along +x; coordinates are plain page coordinates.
Ccw
Most runs read bottom-to-top (90°, Tm = [0 b -b 0]): the frame was
turned so they read along +x, mapping (x, y) → (y, -x).
Cw
Most runs read top-to-bottom (270°, Tm = [0 -b b 0]): the frame was
turned the other way, mapping (x, y) → (-y, x).
Trait Implementations§
Source§impl Clone for PageRotation
impl Clone for PageRotation
impl Copy for PageRotation
Source§impl Debug for PageRotation
impl Debug for PageRotation
impl Eq for PageRotation
Source§impl PartialEq for PageRotation
impl PartialEq for PageRotation
impl StructuralPartialEq for PageRotation
Auto Trait Implementations§
impl Freeze for PageRotation
impl RefUnwindSafe for PageRotation
impl Send for PageRotation
impl Sync for PageRotation
impl Unpin for PageRotation
impl UnsafeUnpin for PageRotation
impl UnwindSafe for PageRotation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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> ⓘ
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> ⓘ
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