Struct ttf_parser::tables::cff::charstring::CharStringParser

source ·
pub(crate) struct CharStringParser<'a> {
    pub stack: ArgumentsStack<'a>,
    pub builder: &'a mut Builder<'a>,
    pub x: f32,
    pub y: f32,
    pub has_move_to: bool,
    pub is_first_move_to: bool,
    pub width_only: bool,
}

Fields§

§stack: ArgumentsStack<'a>§builder: &'a mut Builder<'a>§x: f32§y: f32§has_move_to: bool§is_first_move_to: bool§width_only: bool

Implementations§

source§

impl CharStringParser<'_>

source

pub fn parse_move_to(&mut self, offset: usize) -> Result<(), CFFError>

source

pub fn parse_horizontal_move_to( &mut self, offset: usize, ) -> Result<(), CFFError>

source

pub fn parse_vertical_move_to(&mut self, offset: usize) -> Result<(), CFFError>

source

pub fn parse_line_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_horizontal_line_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_vertical_line_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_curve_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_curve_line(&mut self) -> Result<(), CFFError>

source

pub fn parse_line_curve(&mut self) -> Result<(), CFFError>

source

pub fn parse_hh_curve_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_vv_curve_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_hv_curve_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_vh_curve_to(&mut self) -> Result<(), CFFError>

source

pub fn parse_flex(&mut self) -> Result<(), CFFError>

source

pub fn parse_flex1(&mut self) -> Result<(), CFFError>

source

pub fn parse_hflex(&mut self) -> Result<(), CFFError>

source

pub fn parse_hflex1(&mut self) -> Result<(), CFFError>

source

pub fn parse_int1(&mut self, op: u8) -> Result<(), CFFError>

source

pub fn parse_int2(&mut self, op: u8, s: &mut Stream<'_>) -> Result<(), CFFError>

source

pub fn parse_int3(&mut self, op: u8, s: &mut Stream<'_>) -> Result<(), CFFError>

source

pub fn parse_fixed(&mut self, s: &mut Stream<'_>) -> Result<(), CFFError>

Auto Trait Implementations§

§

impl<'a> Freeze for CharStringParser<'a>

§

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

§

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

§

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

§

impl<'a> Unpin for CharStringParser<'a>

§

impl<'a> !UnwindSafe for CharStringParser<'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, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.