pub struct BalancedOptions { /* private fields */ }Expand description
Options for balanced_page_markdown and balanced_markdown.
The tier’s own settings (thresholds, R5’s bar, R7-R10 on, furniture dropped) are fixed; what varies per caller is whether furniture lines are kept, and whether the table-structure stage runs inside the kept table regions.
Implementations§
Source§impl BalancedOptions
impl BalancedOptions
Sourcepub fn keep_furniture(self, keep: bool) -> Self
pub fn keep_furniture(self, keep: bool) -> Self
Keep furniture lines as paragraphs (true) or drop them (the default).
Sourcepub fn with_tatr(self, tatr: TatrOptions) -> Self
pub fn with_tatr(self, tatr: TatrOptions) -> Self
Rebuild the kept table regions with TATR first, where it fires (track B, P4).
The only way to set the TATR opt-in: there is no public field. With
it set, R1 offers each kept table region to the Table Transformer
before the engine grid runs; where TATR fires its cells are the
region’s table, and where it declines, fires under coverage, or the
region fails, R1 continues exactly as without the option. R7 orphan
engine tables never reach TATR: no detector region, no offer. A
missing model refuses up front, never a silent run without the stage
– as does asking on a build without the ort-tables feature.
§Example
use pdf_engine::balanced::BalancedOptions;
use pdf_engine::TatrOptions;
let options = BalancedOptions::default().with_tatr(TatrOptions::default());Trait Implementations§
Source§impl Clone for BalancedOptions
impl Clone for BalancedOptions
Source§impl Debug for BalancedOptions
impl Debug for BalancedOptions
Auto Trait Implementations§
impl Freeze for BalancedOptions
impl RefUnwindSafe for BalancedOptions
impl Send for BalancedOptions
impl Sync for BalancedOptions
impl Unpin for BalancedOptions
impl UnsafeUnpin for BalancedOptions
impl UnwindSafe for BalancedOptions
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().