pub struct TextBox {
pub text: String,
pub x: f64,
pub y: f64,
pub width: f64,
pub height: f64,
pub confidence: f64,
pub rotation: f64,
}Expand description
One piece of OCR text to draw, in PDF points.
The origin is the top-left of the page as displayed, x to the right and
y down. (x, y) is the top-left corner of the axis-aligned box.
Fields§
§text: String§x: f64§y: f64§width: f64§height: f64§confidence: f64OCR confidence from 0 to 1.
rotation: f64Text direction in degrees counter-clockwise. Values snap to 0, 90, 180, or 270.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextBox
Auto Trait Implementations§
impl Forget for TextBox
impl Freeze for TextBox
impl Move for TextBox
impl RefUnwindSafe for TextBox
impl Send for TextBox
impl Sync for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
impl UnwindSafe for TextBox
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