pub struct ExtractedBlock {
pub role: ContentRole,
pub text: String,
pub bounds: Option<PdfRect>,
pub font_size: Option<f32>,
pub is_bold: bool,
pub is_italic: bool,
pub is_monospace: bool,
pub children: Vec<ExtractedBlock>,
}Expand description
A single block of extracted content with its semantic role and properties.
Fields§
§role: ContentRoleThe semantic role of this block.
text: StringThe text content of this block.
bounds: Option<PdfRect>The bounding rectangle, if available.
font_size: Option<f32>The font size in points, if available.
is_bold: boolWhether the text is bold.
is_italic: boolWhether the text is italic.
is_monospace: boolWhether the font is monospace (fixed-pitch).
children: Vec<ExtractedBlock>Child blocks (e.g., cells within a table row).
Trait Implementations§
Source§impl Clone for ExtractedBlock
impl Clone for ExtractedBlock
Source§fn clone(&self) -> ExtractedBlock
fn clone(&self) -> ExtractedBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtractedBlock
impl RefUnwindSafe for ExtractedBlock
impl Send for ExtractedBlock
impl Sync for ExtractedBlock
impl Unpin for ExtractedBlock
impl UnsafeUnpin for ExtractedBlock
impl UnwindSafe for ExtractedBlock
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