Struct pdf::build::PdfBuilder

source ·
pub struct PdfBuilder<SC, OC, L> {
    pub storage: Storage<Vec<u8>, SC, OC, L>,
    pub info: Option<InfoDict>,
    pub id: Option<[String; 2]>,
}

Fields§

§storage: Storage<Vec<u8>, SC, OC, L>§info: Option<InfoDict>§id: Option<[String; 2]>

Implementations§

source§

impl<SC, OC, L> PdfBuilder<SC, OC, L>where SC: Cache<Result<AnySync, Arc<PdfError>>>, OC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,

source

pub fn new(fileoptions: FileOptions<'_, SC, OC, L>) -> Self

source

pub fn info(self, info: InfoDict) -> Self

source

pub fn id(self, a: String, b: String) -> Self

source

pub fn build(self, catalog: CatalogBuilder) -> Result<Vec<u8>>

Auto Trait Implementations§

§

impl<SC, OC, L> RefUnwindSafe for PdfBuilder<SC, OC, L>where L: RefUnwindSafe, OC: RefUnwindSafe, SC: RefUnwindSafe,

§

impl<SC, OC, L> Send for PdfBuilder<SC, OC, L>where L: Send, OC: Send, SC: Send,

§

impl<SC, OC, L> Sync for PdfBuilder<SC, OC, L>where L: Sync, OC: Sync, SC: Sync,

§

impl<SC, OC, L> Unpin for PdfBuilder<SC, OC, L>where L: Unpin, OC: Unpin, SC: Unpin,

§

impl<SC, OC, L> UnwindSafe for PdfBuilder<SC, OC, L>where L: UnwindSafe, OC: UnwindSafe, SC: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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> Same for T

§

type Output = T

Should always be Self
source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.