pub struct StreamingLayoutEngine { /* private fields */ }Expand description
Streaming layout engine that yields pages one at a time
Implementations§
Source§impl StreamingLayoutEngine
impl StreamingLayoutEngine
Sourcepub fn with_config(config: StreamingConfig) -> Self
pub fn with_config(config: StreamingConfig) -> Self
Create a new streaming layout engine with custom configuration
Sourcepub fn layout_streaming<'a, 'b>(
&'a self,
fo_tree: &'b FoArena<'b>,
) -> StreamingLayoutIterator<'a, 'b> ⓘ
pub fn layout_streaming<'a, 'b>( &'a self, fo_tree: &'b FoArena<'b>, ) -> StreamingLayoutIterator<'a, 'b> ⓘ
Layout an FO tree in streaming mode, yielding one page at a time
This method returns an iterator that produces one AreaTree per page. Each AreaTree contains only the areas for that single page and can be immediately rendered and discarded to minimize memory usage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingLayoutEngine
impl RefUnwindSafe for StreamingLayoutEngine
impl Send for StreamingLayoutEngine
impl Sync for StreamingLayoutEngine
impl Unpin for StreamingLayoutEngine
impl UnsafeUnpin for StreamingLayoutEngine
impl UnwindSafe for StreamingLayoutEngine
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().