pub struct GeometryProbeRun {Show 14 fields
pub index: u32,
pub text: String,
pub char_start: i32,
pub char_end: i32,
pub char_indices: Vec<i32>,
pub char_box_union: Option<QRect>,
pub loose_char_box_union: Option<QRect>,
pub text_rects: Vec<QRect>,
pub text_rect_union: Option<QRect>,
pub first_origin: Option<[i64; 2]>,
pub last_origin: Option<[i64; 2]>,
pub font_id: Option<String>,
pub font_flags: Option<u32>,
pub font_size_q: Option<i64>,
}Expand description
Parser-like text run with alternative PDFium geometry sources.
Fields§
§index: u32One-based run index on this page.
text: StringRun text after parser skip/break rules.
char_start: i32First included PDFium character index.
char_end: i32Exclusive end PDFium character index.
char_indices: Vec<i32>Included character indices.
char_box_union: Option<QRect>Current parser span bbox: union of FPDFText_GetCharBox records.
loose_char_box_union: Option<QRect>Union of FPDFText_GetLooseCharBox records when available.
text_rects: Vec<QRect>Rectangles from FPDFText_CountRects/GetRect for the run range when available.
text_rect_union: Option<QRect>Union of text_rects when available.
first_origin: Option<[i64; 2]>Origin of first included character when available.
last_origin: Option<[i64; 2]>Origin of last included character when available.
font_id: Option<String>Deterministic font id used by the parser.
font_flags: Option<u32>PDFium font descriptor flags used by the parser.
font_size_q: Option<i64>Quantized font size used by the parser.
Trait Implementations§
Source§impl Debug for GeometryProbeRun
impl Debug for GeometryProbeRun
Auto Trait Implementations§
impl Freeze for GeometryProbeRun
impl RefUnwindSafe for GeometryProbeRun
impl Send for GeometryProbeRun
impl Sync for GeometryProbeRun
impl Unpin for GeometryProbeRun
impl UnsafeUnpin for GeometryProbeRun
impl UnwindSafe for GeometryProbeRun
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