OutlineBuilder

Trait OutlineBuilder 

Source
pub trait OutlineBuilder {
    type Error: Error;

    // Required method
    fn visit<S: OutlineSink>(
        &mut self,
        glyph_index: u16,
        sink: &mut S,
    ) -> Result<(), Self::Error>;
}
Expand description

Trait for visiting a glyph outline and delivering drawing commands to an OutlineSink.

Required Associated Types§

Required Methods§

Source

fn visit<S: OutlineSink>( &mut self, glyph_index: u16, sink: &mut S, ) -> Result<(), Self::Error>

Visit the glyph outlines in self.

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§