Skip to main content

LigatureActions

Trait LigatureActions 

Source
trait LigatureActions<P> {
    // Required methods
    fn action_start(entry: &StateEntry<P>) -> Option<usize>;
    fn action(&self, index: usize) -> Option<u32>;
    fn next_action(index: usize) -> usize;
    fn component(&self, glyph: u32, offset: i32) -> Option<u16>;
    fn ligature(&self, index: u32) -> Option<GlyphId16>;
}

Required Methods§

Source

fn action_start(entry: &StateEntry<P>) -> Option<usize>

Source

fn action(&self, index: usize) -> Option<u32>

Source

fn next_action(index: usize) -> usize

Source

fn component(&self, glyph: u32, offset: i32) -> Option<u16>

Source

fn ligature(&self, index: u32) -> Option<GlyphId16>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LigatureActions<BigEndian<u16>> for LigatureSubtable<'_>

Source§

fn action_start(entry: &StateEntry<BigEndian<u16>>) -> Option<usize>

Source§

fn action(&self, index: usize) -> Option<u32>

Source§

fn next_action(index: usize) -> usize

Source§

fn component(&self, glyph: u32, offset: i32) -> Option<u16>

Source§

fn ligature(&self, index: u32) -> Option<GlyphId16>

Source§

impl LigatureActions<NoPayload> for LigatureSubtable<'_>

Source§

fn action_start(entry: &StateEntry) -> Option<usize>

Source§

fn action(&self, index: usize) -> Option<u32>

Source§

fn next_action(index: usize) -> usize

Source§

fn component(&self, glyph: u32, offset: i32) -> Option<u16>

Source§

fn ligature(&self, index: u32) -> Option<GlyphId16>

Implementors§