#[non_exhaustive]pub struct ReadingOrder { /* private fields */ }Expand description
Reading-order handle for a single document.
Pre-0.1 placeholder — single-page bundles flow through crate::clean
without consulting this type. Multi-page output will route through
ReadingOrder::infer in a follow-up PR.
Implementations§
Source§impl ReadingOrder
impl ReadingOrder
Sourcepub fn new() -> Result<Self, DocumentError>
pub fn new() -> Result<Self, DocumentError>
Build a reading-order handle.
§Errors
Always returns DocumentError::NotImplemented until the
multi-page PR lands. Single-page bundles never call this; the
placeholder fails loudly so adopters cannot stumble into silent
empty-order output (Axis 1 fail-closed).
Sourcepub fn infer(_pages: &[&[u8]]) -> Result<Self, DocumentError>
pub fn infer(_pages: &[&[u8]]) -> Result<Self, DocumentError>
Infer reading order from raw page payloads.
§Errors
Returns DocumentError::NotImplemented until the multi-page PR
lands. Single-page bundles do not need this path.
Auto Trait Implementations§
impl Freeze for ReadingOrder
impl RefUnwindSafe for ReadingOrder
impl Send for ReadingOrder
impl Sync for ReadingOrder
impl Unpin for ReadingOrder
impl UnsafeUnpin for ReadingOrder
impl UnwindSafe for ReadingOrder
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> 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 more