pub struct FullBleed { /* private fields */ }Implementations§
Source§impl FullBleed
impl FullBleed
pub fn builder() -> FullBleedBuilder
pub fn render_to_document( &self, html: &str, css: &str, ) -> Result<Document, FullBleedError>
pub fn render_to_buffer( &self, html: &str, css: &str, ) -> Result<Vec<u8>, FullBleedError>
pub fn render_with_metrics( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, DocumentMetrics), FullBleedError>
pub fn render_with_page_data( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, Option<PageDataContext>), FullBleedError>
pub fn render_with_page_data_and_glyph_report( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, Option<PageDataContext>, GlyphCoverageReport), FullBleedError>
pub fn render_with_page_data_and_template_bindings( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, Option<PageDataContext>, Option<Vec<PageBindingDecision>>), FullBleedError>
pub fn render_with_page_data_and_template_bindings_and_glyph_report( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, Option<PageDataContext>, Option<Vec<PageBindingDecision>>, GlyphCoverageReport), FullBleedError>
pub fn render_with_glyph_report( &self, html: &str, css: &str, ) -> Result<(Vec<u8>, GlyphCoverageReport), FullBleedError>
pub fn render_to_writer<W: Write>( &self, html: &str, css: &str, writer: &mut W, ) -> Result<usize, FullBleedError>
pub fn render_to_file( &self, html: &str, css: &str, path: impl AsRef<Path>, ) -> Result<usize, FullBleedError>
pub fn render_image_pages( &self, html: &str, css: &str, dpi: u32, ) -> Result<Vec<Vec<u8>>, FullBleedError>
pub fn render_image_pages_to_dir( &self, html: &str, css: &str, out_dir: impl AsRef<Path>, stem: &str, dpi: u32, ) -> Result<Vec<PathBuf>, FullBleedError>
pub fn render_finalized_pdf_image_pages( &self, pdf_path: impl AsRef<Path>, dpi: u32, ) -> Result<Vec<Vec<u8>>, FullBleedError>
pub fn render_finalized_pdf_image_pages_to_dir( &self, pdf_path: impl AsRef<Path>, out_dir: impl AsRef<Path>, stem: &str, dpi: u32, ) -> Result<Vec<PathBuf>, FullBleedError>
pub fn render_many_to_buffer( &self, html_list: &[String], css: &str, ) -> Result<Vec<u8>, FullBleedError>
pub fn render_many_to_writer<W: Write>( &self, html_list: &[String], css: &str, writer: &mut W, ) -> Result<usize, FullBleedError>
pub fn render_many_to_file( &self, html_list: &[String], css: &str, path: impl AsRef<Path>, ) -> Result<usize, FullBleedError>
pub fn render_many_to_buffer_with_css( &self, jobs: &[(String, String)], ) -> Result<Vec<u8>, FullBleedError>
pub fn render_many_to_writer_with_css<W: Write>( &self, jobs: &[(String, String)], writer: &mut W, ) -> Result<usize, FullBleedError>
pub fn render_many_to_file_with_css( &self, jobs: &[(String, String)], path: impl AsRef<Path>, ) -> Result<usize, FullBleedError>
pub fn render_many_to_buffer_parallel( &self, html_list: &[String], css: &str, ) -> Result<Vec<u8>, FullBleedError>
pub fn render_many_to_buffer_parallel_with_page_data( &self, html_list: &[String], css: &str, ) -> Result<(Vec<u8>, Vec<Option<PageDataContext>>), FullBleedError>
pub fn render_many_to_writer_parallel<W: Write>( &self, html_list: &[String], css: &str, writer: &mut W, ) -> Result<usize, FullBleedError>
pub fn render_many_to_writer_parallel_with_page_data<W: Write>( &self, html_list: &[String], css: &str, writer: &mut W, ) -> Result<(usize, Vec<Option<PageDataContext>>), FullBleedError>
pub fn render_many_to_file_parallel( &self, html_list: &[String], css: &str, path: impl AsRef<Path>, ) -> Result<usize, FullBleedError>
pub fn render_many_to_file_parallel_with_page_data( &self, html_list: &[String], css: &str, path: impl AsRef<Path>, ) -> Result<(usize, Vec<Option<PageDataContext>>), FullBleedError>
Auto Trait Implementations§
impl Freeze for FullBleed
impl RefUnwindSafe for FullBleed
impl Send for FullBleed
impl Sync for FullBleed
impl Unpin for FullBleed
impl UnsafeUnpin for FullBleed
impl UnwindSafe for FullBleed
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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 moreSource§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Casts the value.
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.