pub struct ProjectionTextBox {Show 28 fields
pub str: String,
pub x: f64,
pub y: f64,
pub w: f64,
pub h: f64,
pub rx: Option<f64>,
pub ry: Option<f64>,
pub r: Option<i32>,
pub str_length: usize,
pub markup: Option<MarkupData>,
pub page_bbox: Option<Coordinates>,
pub vgap: bool,
pub is_placeholder: bool,
pub from_ocr: bool,
pub snap: Option<Snap>,
pub left_anchor: Option<String>,
pub right_anchor: Option<String>,
pub center_anchor: Option<String>,
pub is_dup: bool,
pub rendered: bool,
pub is_margin_line_number: bool,
pub should_space: Option<f64>,
pub force_unsnapped: bool,
pub rotated: bool,
pub d: Option<f64>,
pub font_name: Option<String>,
pub font_size: Option<f64>,
pub confidence: Option<f64>,
}Expand description
A working copy of a text item used during grid projection. Separate from
TextItem because it carries algorithm-internal metadata.
Fields§
§str: String§x: f64§y: f64§w: f64§h: f64§rx: Option<f64>§ry: Option<f64>§r: Option<i32>§str_length: usize§markup: Option<MarkupData>§page_bbox: Option<Coordinates>§vgap: bool§is_placeholder: bool§from_ocr: bool§snap: Option<Snap>§left_anchor: Option<String>§right_anchor: Option<String>§center_anchor: Option<String>§is_dup: bool§rendered: bool§is_margin_line_number: bool§should_space: Option<f64>§force_unsnapped: bool§rotated: bool§d: Option<f64>§font_name: Option<String>§font_size: Option<f64>§confidence: Option<f64>Trait Implementations§
Source§impl Clone for ProjectionTextBox
impl Clone for ProjectionTextBox
Source§fn clone(&self) -> ProjectionTextBox
fn clone(&self) -> ProjectionTextBox
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 moreAuto Trait Implementations§
impl Freeze for ProjectionTextBox
impl RefUnwindSafe for ProjectionTextBox
impl Send for ProjectionTextBox
impl Sync for ProjectionTextBox
impl Unpin for ProjectionTextBox
impl UnsafeUnpin for ProjectionTextBox
impl UnwindSafe for ProjectionTextBox
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