Skip to main content

GeometryProbeRun

Struct GeometryProbeRun 

Source
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: u32

One-based run index on this page.

§text: String

Run text after parser skip/break rules.

§char_start: i32

First included PDFium character index.

§char_end: i32

Exclusive 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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for GeometryProbeRun

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.