pub struct PdfFormat { /* private fields */ }Expand description
Format implementation that shells out to Chrome/Chromium to generate PDFs.
Implementations§
Trait Implementations§
Source§impl Format for PdfFormat
impl Format for PdfFormat
Source§fn description(&self) -> &str
fn description(&self) -> &str
Optional description of this format
Source§fn file_extensions(&self) -> &[&str]
fn file_extensions(&self) -> &[&str]
File extensions associated with this format (e.g., [“lex”], [“md”, “markdown”]) Read more
Source§fn supports_serialization(&self) -> bool
fn supports_serialization(&self) -> bool
Whether this format supports serialization (Document → source)
Source§fn serialize(&self, _doc: &Document) -> Result<String, FormatError>
fn serialize(&self, _doc: &Document) -> Result<String, FormatError>
Serialize a Document into source text Read more
Source§fn serialize_with_options(
&self,
doc: &Document,
options: &HashMap<String, String>,
) -> Result<SerializedDocument, FormatError>
fn serialize_with_options( &self, doc: &Document, options: &HashMap<String, String>, ) -> Result<SerializedDocument, FormatError>
Serialize a Document, optionally using extra parameters. Read more
Source§fn supports_parsing(&self) -> bool
fn supports_parsing(&self) -> bool
Whether this format supports parsing (source → Document)
Auto Trait Implementations§
impl Freeze for PdfFormat
impl RefUnwindSafe for PdfFormat
impl Send for PdfFormat
impl Sync for PdfFormat
impl Unpin for PdfFormat
impl UnsafeUnpin for PdfFormat
impl UnwindSafe for PdfFormat
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more