pub struct Span {
pub id: String,
pub page: String,
pub bbox: QRect,
pub origin_locator: Option<SpanOriginLocator>,
pub text: String,
pub font_id: Option<String>,
pub font_size_q: Option<i64>,
pub char_start: Option<u32>,
pub char_end: Option<u32>,
pub warning_refs: Vec<String>,
}Expand description
An extracted text span.
Fields§
§id: Strings%06d, content-stream order.
page: StringOwning page id.
bbox: QRectBounding box.
origin_locator: Option<SpanOriginLocator>Stable origin-derived locator used by the fingerprint projection.
text: StringSpan text, exactly as extracted.
font_id: Option<String>Deterministic font identity (ADR-0003): embedded:… or subst:….
font_size_q: Option<i64>Font size in quanta.
char_start: Option<u32>Char offset into the owning element’s text.
char_end: Option<u32>Exclusive end offset.
warning_refs: Vec<String>Attached warnings.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Span
impl<'de> Deserialize<'de> for Span
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 Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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