pub struct RawTextSegment {
pub text: String,
pub font_resource_name: Vec<u8>,
pub font_size: f32,
pub page_number: usize,
}Expand description
A single text segment extracted from a PDF content stream.
Fields§
§text: StringDecoded UTF-8 text content.
font_resource_name: Vec<u8>The font resource name as it appears in the content stream (e.g., b“F1“).
font_size: f32Font size from the current Tf text state.
page_number: usize1-based page number.
Trait Implementations§
Source§impl Clone for RawTextSegment
impl Clone for RawTextSegment
Source§fn clone(&self) -> RawTextSegment
fn clone(&self) -> RawTextSegment
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 moreSource§impl Debug for RawTextSegment
impl Debug for RawTextSegment
Source§impl PartialEq for RawTextSegment
impl PartialEq for RawTextSegment
impl StructuralPartialEq for RawTextSegment
Auto Trait Implementations§
impl Freeze for RawTextSegment
impl RefUnwindSafe for RawTextSegment
impl Send for RawTextSegment
impl Sync for RawTextSegment
impl Unpin for RawTextSegment
impl UnsafeUnpin for RawTextSegment
impl UnwindSafe for RawTextSegment
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