pub struct SpanOriginLocator {
pub policy: String,
pub first_origin: [i64; 2],
pub last_origin: [i64; 2],
}Expand description
Origin-derived text locator that remains stable when PDFium bbox dimensions drift.
Fields§
§policy: StringLocator policy id.
first_origin: [i64; 2]First included character origin in top-left quanta.
last_origin: [i64; 2]Last included character origin in top-left quanta.
Trait Implementations§
Source§impl Clone for SpanOriginLocator
impl Clone for SpanOriginLocator
Source§fn clone(&self) -> SpanOriginLocator
fn clone(&self) -> SpanOriginLocator
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 moreSource§impl Debug for SpanOriginLocator
impl Debug for SpanOriginLocator
Source§impl<'de> Deserialize<'de> for SpanOriginLocator
impl<'de> Deserialize<'de> for SpanOriginLocator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpanOriginLocator
Source§impl PartialEq for SpanOriginLocator
impl PartialEq for SpanOriginLocator
Source§fn eq(&self, other: &SpanOriginLocator) -> bool
fn eq(&self, other: &SpanOriginLocator) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpanOriginLocator
impl Serialize for SpanOriginLocator
impl StructuralPartialEq for SpanOriginLocator
Auto Trait Implementations§
impl Freeze for SpanOriginLocator
impl RefUnwindSafe for SpanOriginLocator
impl Send for SpanOriginLocator
impl Sync for SpanOriginLocator
impl Unpin for SpanOriginLocator
impl UnsafeUnpin for SpanOriginLocator
impl UnwindSafe for SpanOriginLocator
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