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 Forget for DocumentSeed
impl Freeze for DocumentSeedwhere
*const ArcInner<Vec<u8>> is !null: Freeze,
PhantomData<ArcInner<Vec<u8>>>: Freeze,
*const ArcInner<Xref> is !null: Freeze,
PhantomData<ArcInner<Xref>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, Cipher)>: Freeze,
*const ArcInner<Vec<PageRec>> is !null: Freeze,
PhantomData<ArcInner<Vec<PageRec>>>: Freeze,
impl Move for DocumentSeed
impl RefUnwindSafe for DocumentSeed
impl Send for DocumentSeed
impl Sync for DocumentSeed
impl Unpin for DocumentSeed
impl UnsafeUnpin for DocumentSeedwhere
*const ArcInner<Vec<u8>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<u8>>>: UnsafeUnpin,
*const ArcInner<Xref> is !null: UnsafeUnpin,
PhantomData<ArcInner<Xref>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, Cipher)>: UnsafeUnpin,
*const ArcInner<Vec<PageRec>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<PageRec>>>: UnsafeUnpin,
impl UnwindSafe for DocumentSeedwhere
Arc<Vec<u8>>: UnwindSafe,
Arc<Xref>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<Vec<PageRec>>: UnwindSafe,
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