Skip to main content

DocumentSeed

Struct DocumentSeed 

Source
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

Source

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

Source§

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)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl Forget for DocumentSeed

§

impl Freeze for DocumentSeed
where *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
where Arc<Vec<u8>>: Send, Arc<Xref>: Send, RawVecInner: Send, Arc<Vec<PageRec>>: Send,

§

impl Sync for DocumentSeed
where Arc<Vec<u8>>: Sync, Arc<Xref>: Sync, RawVecInner: Sync, Arc<Vec<PageRec>>: Sync,

§

impl Unpin for DocumentSeed
where Arc<Vec<u8>>: Unpin, Arc<Xref>: Unpin, *const u8 is !null: Unpin, Arc<Vec<PageRec>>: Unpin,

§

impl UnsafeUnpin for DocumentSeed
where *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 DocumentSeed
where Arc<Vec<u8>>: UnwindSafe, Arc<Xref>: UnwindSafe, RawVecInner: UnwindSafe, Arc<Vec<PageRec>>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.