pub struct DocumentSeed { /* private fields */ }Expand description
A document’s immutable core, detached from its single-threaded caches:
the file bytes, the merged cross-reference table, the decryption key
material, and the flattened page tree. Send + Sync (asserted in this
module’s tests), which the Document deliberately is not — this is
the value that crosses a thread boundary, one fresh document
materializing from it on each side. See Document::seed,
Document::from_seed and map_pages.
Implementations§
Source§impl DocumentSeed
impl DocumentSeed
Sourcepub fn page_count(&self) -> usize
pub fn page_count(&self) -> usize
Number of pages in the flattened page tree the seed carries: what every document built from it reports, without materializing one.
Trait Implementations§
Source§impl Clone for DocumentSeed
impl Clone for DocumentSeed
Source§fn clone(&self) -> DocumentSeed
fn clone(&self) -> DocumentSeed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DocumentSeed
impl RefUnwindSafe for DocumentSeed
impl Send for DocumentSeed
impl Sync for DocumentSeed
impl Unpin for DocumentSeed
impl UnsafeUnpin for DocumentSeed
impl UnwindSafe for DocumentSeed
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