Skip to main content

Driver

Struct Driver 

Source
pub struct Driver<__H>(pub __H);

Tuple Fields§

§0: __H

Trait Implementations§

Source§

impl<__H: Hook> Visit for Driver<__H>

Source§

fn visit_page(&mut self, i: &Page)

Visit an Page node; the default recurses via visit_page. Override to act, calling visit_page(self, i) to keep descending.
Source§

fn visit_placed_line(&mut self, i: &PlacedLine)

Visit an PlacedLine node; the default recurses via visit_placed_line. Override to act, calling visit_placed_line(self, i) to keep descending.
Source§

fn visit_vert_box(&mut self, i: &VertBox)

Visit an VertBox node; the default recurses via visit_vert_box. Override to act, calling visit_vert_box(self, i) to keep descending.
Source§

fn visit_pure_horz_box(&mut self, i: &PureHorzBox)

Visit an PureHorzBox node; the default recurses via visit_pure_horz_box. Override to act, calling visit_pure_horz_box(self, i) to keep descending.
Source§

fn visit_tabular_box(&mut self, i: &TabularBox)

Visit an TabularBox node; the default recurses via visit_tabular_box. Override to act, calling visit_tabular_box(self, i) to keep descending.
Source§

fn visit_tabular_cell_box(&mut self, i: &TabularCellBox)

Visit an TabularCellBox node; the default recurses via visit_tabular_cell_box. Override to act, calling visit_tabular_cell_box(self, i) to keep descending.
Source§

fn visit_graphics_elem(&mut self, i: &GraphicsElem)

Visit an GraphicsElem node; the default recurses via visit_graphics_elem. Override to act, calling visit_graphics_elem(self, i) to keep descending.

Auto Trait Implementations§

§

impl<__H> Freeze for Driver<__H>
where __H: Freeze,

§

impl<__H> RefUnwindSafe for Driver<__H>
where __H: RefUnwindSafe,

§

impl<__H> Send for Driver<__H>
where __H: Send,

§

impl<__H> Sync for Driver<__H>
where __H: Sync,

§

impl<__H> Unpin for Driver<__H>
where __H: Unpin,

§

impl<__H> UnsafeUnpin for Driver<__H>
where __H: UnsafeUnpin,

§

impl<__H> UnwindSafe for Driver<__H>
where __H: 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> 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<__V> IntoVisitor<()> for __V
where __V: Visit,

Source§

fn into_visitor(self) -> impl Visit

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.