pub struct TextMatch {Show 13 fields
pub id: MatchId,
pub text: String,
pub page: u32,
pub bbox: [f64; 4],
pub spans: Vec<MatchSpan>,
pub style: MatchStyle,
pub transform: [f64; 6],
pub writing_direction: WritingDirection,
pub container: ContainerInfo,
pub actual_text: Option<String>,
pub editable: bool,
pub unsupported: Option<UnsupportedReason>,
pub warnings: Vec<Diagnostic>,
}Expand description
One found occurrence.
Fields§
§id: MatchIdOpaque serializable locator.
text: StringThe matched visual text.
page: u321-based page number.
bbox: [f64; 4]Approximate device-space bounding box [x0, y0, x1, y1].
spans: Vec<MatchSpan>Touched text-showing operators.
style: MatchStyleStyle at the start of the match.
transform: [f64; 6]Text matrix × CTM at the start of the match.
writing_direction: WritingDirectionWriting direction (Phase 1: LTR).
container: ContainerInfoContainer the match lives in.
actual_text: Option<String>Enclosing /ActualText, when present.
editable: boolWhether this match can be edited by the current engine phase.
unsupported: Option<UnsupportedReason>Why the match is not editable, when it is not.
warnings: Vec<Diagnostic>Non-fatal observations (approximate bbox, style notes, …).
Trait Implementations§
Source§impl Serialize for TextMatch
impl Serialize for TextMatch
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TextMatch
impl RefUnwindSafe for TextMatch
impl Send for TextMatch
impl Sync for TextMatch
impl Unpin for TextMatch
impl UnsafeUnpin for TextMatch
impl UnwindSafe for TextMatch
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreimpl<T> ParallelSend for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.