Skip to main content

FontWithLpRp

Trait FontWithLpRp 

Source
pub trait FontWithLpRp: Font {
    // Required methods
    fn get_lp(&self, c: Self::Char) -> Self::Int;
    fn set_lp(&mut self, c: Self::Char, d: Self::Int);
    fn get_rp(&self, c: Self::Char) -> Self::Int;
    fn set_rp(&mut self, c: Self::Char, d: Self::Int);
}

Required Methods§

Source

fn get_lp(&self, c: Self::Char) -> Self::Int

Source

fn set_lp(&mut self, c: Self::Char, d: Self::Int)

Source

fn get_rp(&self, c: Self::Char) -> Self::Int

Source

fn set_rp(&mut self, c: Self::Char, d: Self::Int)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<I: TeXInt, D: TeXDimen + Numeric<I>, CS: CSName<u8>> FontWithLpRp for TfmFont<I, D, CS>