Struct HTMLOutput

Source
pub struct HTMLOutput<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> HTMLOutput<'a>

Source

pub fn new(file: &mut dyn Write) -> HTMLOutput<'_>

Trait Implementations§

Source§

impl<'a> OutputDev for HTMLOutput<'a>

Source§

fn begin_page( &mut self, page_num: u32, media_box: &MediaBox, _: Option<(f64, f64, f64, f64)>, ) -> Result<(), OutputError>

Source§

fn end_page(&mut self) -> Result<(), OutputError>

Source§

fn output_character( &mut self, trm: &Transform, width: f64, spacing: f64, font_size: f64, char: &str, ) -> Result<(), OutputError>

Source§

fn begin_word(&mut self) -> Result<(), OutputError>

Source§

fn end_word(&mut self) -> Result<(), OutputError>

Source§

fn end_line(&mut self) -> Result<(), OutputError>

Source§

fn stroke( &mut self, _ctm: &Transform, _colorspace: &ColorSpace, _color: &[f64], _path: &Path, ) -> Result<(), OutputError>

Source§

fn fill( &mut self, _ctm: &Transform, _colorspace: &ColorSpace, _color: &[f64], _path: &Path, ) -> Result<(), OutputError>

Auto Trait Implementations§

§

impl<'a> Freeze for HTMLOutput<'a>

§

impl<'a> !RefUnwindSafe for HTMLOutput<'a>

§

impl<'a> !Send for HTMLOutput<'a>

§

impl<'a> !Sync for HTMLOutput<'a>

§

impl<'a> Unpin for HTMLOutput<'a>

§

impl<'a> !UnwindSafe for HTMLOutput<'a>

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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V