pub struct LayoutContinuation { /* private fields */ }Expand description
Resumable layout continuation driving remaining pages of an incrementally opened Document.
Implementations§
Source§impl LayoutContinuation
impl LayoutContinuation
Sourcepub fn step(
&mut self,
document: &mut Document,
fonts: &FontDb,
art: &ArtPictures,
max_new_pages: Option<usize>,
max_blocks: usize,
) -> Result<LayoutProgress, Error>
pub fn step( &mut self, document: &mut Document, fonts: &FontDb, art: &ArtPictures, max_new_pages: Option<usize>, max_blocks: usize, ) -> Result<LayoutProgress, Error>
Advances pagination by up to max_new_pages newly completed pages (on Pass 1) or
max_blocks body blocks, appending newly finished pages directly onto document.
§Errors
Returns an error if lazy web-settings reading fails during finalization.
Sourcepub fn finish(
self,
document: &mut Document,
fonts: &FontDb,
art: &ArtPictures,
) -> Result<LayoutProgress, Error>
pub fn finish( self, document: &mut Document, fonts: &FontDb, art: &ArtPictures, ) -> Result<LayoutProgress, Error>
Fast-forwards all remaining layout slices to completion on document.
§Errors
Returns an error if lazy web-settings reading fails during finalization.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LayoutContinuation
impl !RefUnwindSafe for LayoutContinuation
impl !Send for LayoutContinuation
impl !Sync for LayoutContinuation
impl !UnwindSafe for LayoutContinuation
impl Forget for LayoutContinuation
impl Move for LayoutContinuation
impl Unpin for LayoutContinuationwhere
Arc<Mutex<Option<ZipArchive<BackingReader>>>>: Unpin,
*const LeafNode<String, Part> is !null: Unpin,
Box<(String, Part)>: Unpin,
*const LeafNode<String, OnceLock<Result<RelationshipsPart, Error>>> is !null: Unpin,
Box<(String, OnceLock<Result<RelationshipsPart, Error>>)>: Unpin,
*const u8 is !null: Unpin,
Arc<Atomic<u64>>: Unpin,
NonZero<u32>: Unpin,
*const LeafNode<String, bool> is !null: Unpin,
Box<(String, bool)>: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Arc<[(Arc<str>, Layer)]>: Unpin,
&'static PageSizes: Unpin,
Arc<FontEnvironment>: Unpin,
Arc<SymbolFonts>: Unpin,
Arc<Merged>: Unpin,
Align8<u64>: Unpin,
Arc<HashMap<String, Property>>: Unpin,
&'static [char; 10]: Unpin,
&'static Counting: Unpin,
&'static [&'static str]: Unpin,
NonZero<usize>: Unpin,
Rc<Name>: Unpin,
Box<Borders>: Unpin,
Box<NamedSides>: Unpin,
Box<FramePr>: Unpin,
Box<LinearGradient>: Unpin,
Box<TextReflection>: Unpin,
Box<FontRef>: Unpin,
Box<str>: Unpin,
Box<ParaProps>: Unpin,
&'static str: Unpin,
String: Unpin,
Rc<ListDefinitions>: Unpin,
Box<DateField>: Unpin,
Box<DocProperty>: Unpin,
Box<StyleRef>: Unpin,
Box<PageRef>: Unpin,
Box<NumberRef>: Unpin,
Box<IfField>: Unpin,
Box<Floating>: Unpin,
Box<Picture>: Unpin,
Rc<InlineDrawing>: Unpin,
Box<CodeFormat>: Unpin,
Box<Hyperlink>: Unpin,
Rc<str>: Unpin,
Rc<[Block]>: Unpin,
*const LeafNode<(String, FontId), SetValZST> is !null: Unpin,
Box<((String, FontId), SetValZST)>: Unpin,
*const LeafNode<(FontId, ShapeFailure), SetValZST> is !null: Unpin,
Box<((FontId, ShapeFailure), SetValZST)>: Unpin,
*const LeafNode<(FontId, OutlineError), SetValZST> is !null: Unpin,
Box<((FontId, OutlineError), SetValZST)>: Unpin,
*const LeafNode<(Option<String>, Vec<String>), SetValZST> is !null: Unpin,
Box<((Option<String>, Vec<String>), SetValZST)>: Unpin,
Arc<[u8]>: Unpin,
Arc<dyn ImageLoader>: Unpin,
Arc<[ColorEffect]>: Unpin,
Box<PictureLine>: Unpin,
Box<PictureShadow>: Unpin,
Box<PictureSoftEdge>: Unpin,
Box<PictureGlow>: Unpin,
Box<PictureReflection>: Unpin,
NonZero<u16>: Unpin,
Rc<StyledPages>: Unpin,
Rc<TableStyle>: Unpin,
Box<PageWraps>: Unpin,
*const LeafNode<i64, SetValZST> is !null: Unpin,
Box<(i64, SetValZST)>: Unpin,
impl UnsafeUnpin for LayoutContinuationwhere
*const ArcInner<Mutex<Option<ZipArchive<BackingReader>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<ZipArchive<BackingReader>>>>>: UnsafeUnpin,
*const LeafNode<String, Part> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Part)>>: UnsafeUnpin,
*const LeafNode<String, OnceLock<Result<RelationshipsPart, Error>>> is !null: UnsafeUnpin,
PhantomData<Box<(String, OnceLock<Result<RelationshipsPart, Error>>)>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
NonZeroU32Inner: UnsafeUnpin,
*const LeafNode<String, bool> is !null: UnsafeUnpin,
PhantomData<Box<(String, bool)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
*const ArcInner<[(Arc<str>, Layer)]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[(Arc<str>, Layer)]>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static PageSizes: UnsafeUnpin,
*const ArcInner<FontEnvironment> is !null: UnsafeUnpin,
PhantomData<ArcInner<FontEnvironment>>: UnsafeUnpin,
*const ArcInner<SymbolFonts> is !null: UnsafeUnpin,
PhantomData<ArcInner<SymbolFonts>>: UnsafeUnpin,
*const ArcInner<Merged> is !null: UnsafeUnpin,
PhantomData<ArcInner<Merged>>: UnsafeUnpin,
Align8<u64>: UnsafeUnpin,
*const ArcInner<HashMap<String, Property>> is !null: UnsafeUnpin,
PhantomData<ArcInner<HashMap<String, Property>>>: UnsafeUnpin,
&'static [char; 10]: UnsafeUnpin,
&'static Counting: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
NonZeroUsizeInner: UnsafeUnpin,
*const RcInner<Name> is !null: UnsafeUnpin,
PhantomData<RcInner<Name>>: UnsafeUnpin,
PhantomData<TabMark>: UnsafeUnpin,
*const Borders is !null: UnsafeUnpin,
PhantomData<Borders>: UnsafeUnpin,
*const NamedSides is !null: UnsafeUnpin,
PhantomData<NamedSides>: UnsafeUnpin,
*const FramePr is !null: UnsafeUnpin,
PhantomData<FramePr>: UnsafeUnpin,
PhantomData<Modifier>: UnsafeUnpin,
*const LinearGradient is !null: UnsafeUnpin,
PhantomData<LinearGradient>: UnsafeUnpin,
*const TextReflection is !null: UnsafeUnpin,
PhantomData<TextReflection>: UnsafeUnpin,
*const FontRef is !null: UnsafeUnpin,
PhantomData<FontRef>: UnsafeUnpin,
*const str is !null: UnsafeUnpin,
PhantomData<str>: UnsafeUnpin,
PhantomData<(UnsupportedProperty, SetIn<bool>)>: UnsafeUnpin,
*const ParaProps is !null: UnsafeUnpin,
PhantomData<ParaProps>: UnsafeUnpin,
PhantomData<(String, Style)>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
PhantomData<(i64, ThemeStopColor)>: UnsafeUnpin,
PhantomData<[i64; 2]>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(FamilyName, FamilyName)>: UnsafeUnpin,
PhantomData<(FamilyName, EntryCharset)>: UnsafeUnpin,
PhantomData<(FamilyName, Option<FontClass>)>: UnsafeUnpin,
PhantomData<(FamilyName, EntryScript)>: UnsafeUnpin,
*const RcInner<ListDefinitions> is !null: UnsafeUnpin,
PhantomData<RcInner<ListDefinitions>>: UnsafeUnpin,
PhantomData<(String, [Option<i64>; 9])>: UnsafeUnpin,
PhantomData<(NonZero<u32>, ())>: UnsafeUnpin,
PhantomData<Block>: UnsafeUnpin,
PhantomData<(NoteId, Vec<Block>)>: UnsafeUnpin,
PhantomData<NoteId>: UnsafeUnpin,
PhantomData<(String, Comment)>: UnsafeUnpin,
PhantomData<SectionPart>: UnsafeUnpin,
PhantomData<StoredEntry>: UnsafeUnpin,
PhantomData<(String, u8)>: UnsafeUnpin,
PhantomData<EntryField>: UnsafeUnpin,
*const RcInner<str> is !null: UnsafeUnpin,
PhantomData<RcInner<str>>: UnsafeUnpin,
*const RcInner<[Block]> is !null: UnsafeUnpin,
PhantomData<RcInner<[Block]>>: UnsafeUnpin,
PhantomData<SectionLayout>: UnsafeUnpin,
PhantomData<(Warning, u32)>: UnsafeUnpin,
PhantomData<(Warning, usize)>: UnsafeUnpin,
PhantomData<Face>: UnsafeUnpin,
PhantomData<(Face, FaceIndex)>: UnsafeUnpin,
*const LeafNode<(String, FontId), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((String, FontId), SetValZST)>>: UnsafeUnpin,
*const LeafNode<(FontId, ShapeFailure), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((FontId, ShapeFailure), SetValZST)>>: UnsafeUnpin,
*const LeafNode<(FontId, OutlineError), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((FontId, OutlineError), SetValZST)>>: UnsafeUnpin,
*const LeafNode<(Option<String>, Vec<String>), SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<((Option<String>, Vec<String>), SetValZST)>>: UnsafeUnpin,
PhantomData<((FontId, u32), Option<char>)>: UnsafeUnpin,
PhantomData<(FontId, ())>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
PhantomData<(usize, Option<DashStyle>)>: UnsafeUnpin,
PhantomData<(LineKey, Vec<usize>)>: UnsafeUnpin,
PhantomData<Cell>: UnsafeUnpin,
PhantomData<CellDrawing>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Page>: UnsafeUnpin,
PhantomData<PageInfo>: UnsafeUnpin,
PhantomData<BodyArea>: UnsafeUnpin,
PhantomData<(usize, Length)>: UnsafeUnpin,
PhantomData<PlacedLine>: UnsafeUnpin,
PhantomData<Picture>: UnsafeUnpin,
PhantomData<Rc<InlineDrawing>>: UnsafeUnpin,
PhantomData<NumberedNote>: UnsafeUnpin,
PhantomData<(usize, Band)>: UnsafeUnpin,
PhantomData<(usize, Square)>: UnsafeUnpin,
PhantomData<UpwardWrap>: UnsafeUnpin,
PhantomData<(ParagraphId, usize)>: UnsafeUnpin,
PhantomData<(String, NumberContext)>: UnsafeUnpin,
PhantomData<Styled>: UnsafeUnpin,
PhantomData<(usize, usize)>: UnsafeUnpin,
*const RcInner<StyledPages> is !null: UnsafeUnpin,
PhantomData<RcInner<StyledPages>>: UnsafeUnpin,
PhantomData<TableColumns>: UnsafeUnpin,
PhantomData<(NoteId, NoteNumber)>: UnsafeUnpin,
PhantomData<(NoteId, usize)>: UnsafeUnpin,
PhantomData<(NoteNumber, (Length, Option<Previous>))>: UnsafeUnpin,
PhantomData<(Separator, (StoryInputs, SeparatorHeight))>: UnsafeUnpin,
PhantomData<(StoryKey, Warnings<Warning>)>: UnsafeUnpin,
PhantomData<NoteNumber>: UnsafeUnpin,
PhantomData<(String, CommentIndex)>: UnsafeUnpin,
PhantomData<Anchor>: UnsafeUnpin,
PhantomData<CellAnchor>: UnsafeUnpin,
PhantomData<i64>: UnsafeUnpin,
PhantomData<(usize, String)>: UnsafeUnpin,
PhantomData<Band>: UnsafeUnpin,
PhantomData<HyphenRun>: UnsafeUnpin,
PhantomData<Square>: UnsafeUnpin,
PhantomData<FrameBox>: UnsafeUnpin,
PhantomData<NarrowedPiece>: UnsafeUnpin,
PhantomData<(u64, Item)>: UnsafeUnpin,
*const RcInner<TableStyle> is !null: UnsafeUnpin,
PhantomData<RcInner<TableStyle>>: UnsafeUnpin,
PhantomData<(Length, Length)>: UnsafeUnpin,
PhantomData<Length>: UnsafeUnpin,
PhantomData<Part>: UnsafeUnpin,
*const PageWraps is !null: UnsafeUnpin,
PhantomData<PageWraps>: UnsafeUnpin,
PhantomData<Row>: UnsafeUnpin,
PhantomData<Resolved>: UnsafeUnpin,
PhantomData<((ParagraphId, usize), ())>: UnsafeUnpin,
*const LeafNode<i64, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(i64, SetValZST)>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.