Struct HintedTransformingSink

Source
struct HintedTransformingSink<'a, S> {
    inner: &'a mut S,
    matrix: [Fixed; 6],
}
Expand description

Command sink adapter that applies a transform to hinted coordinates.

Fields§

§inner: &'a mut S§matrix: [Fixed; 6]

Implementations§

Source§

impl<'a, S> HintedTransformingSink<'a, S>

Source

fn new(sink: &'a mut S, matrix: [Fixed; 6]) -> Self

Source

fn transform(&self, x: Fixed, y: Fixed) -> (Fixed, Fixed)

Trait Implementations§

Source§

impl<S: CommandSink> CommandSink for HintedTransformingSink<'_, S>

Source§

fn hstem(&mut self, y: Fixed, dy: Fixed)

Horizontal stem hint at y with height dy.
Source§

fn vstem(&mut self, x: Fixed, dx: Fixed)

Vertical stem hint at x with width dx.
Source§

fn hint_mask(&mut self, mask: &[u8])

Bitmask defining the hints that should be made active for the commands that follow.
Source§

fn counter_mask(&mut self, mask: &[u8])

Bitmask defining the counter hints that should be made active for the commands that follow.
Source§

fn move_to(&mut self, x: Fixed, y: Fixed)

Source§

fn line_to(&mut self, x: Fixed, y: Fixed)

Source§

fn curve_to( &mut self, cx1: Fixed, cy1: Fixed, cx2: Fixed, cy2: Fixed, x: Fixed, y: Fixed, )

Source§

fn close(&mut self)

Auto Trait Implementations§

§

impl<'a, S> Freeze for HintedTransformingSink<'a, S>

§

impl<'a, S> RefUnwindSafe for HintedTransformingSink<'a, S>
where S: RefUnwindSafe,

§

impl<'a, S> Send for HintedTransformingSink<'a, S>
where S: Send,

§

impl<'a, S> Sync for HintedTransformingSink<'a, S>
where S: Sync,

§

impl<'a, S> Unpin for HintedTransformingSink<'a, S>

§

impl<'a, S> !UnwindSafe for HintedTransformingSink<'a, S>

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, 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.