Skip to main content

ShapeLoadableTrait

Trait ShapeLoadableTrait 

Source
pub trait ShapeLoadableTrait:
    Debug
    + Sync
    + Send
    + 'static {
    // Required method
    fn load_mf1(&self, group: &GroupData) -> Result<Outline, LibraryLoadError>;

    // Provided method
    fn load(&self, size: PosC<f64>) -> Outline { ... }
}

Required Methods§

Provided Methods§

Source

fn load(&self, size: PosC<f64>) -> Outline

Success or failure must not depend on svg_sz

Called to check the group configuration before load, but with a dummy svg_gz of [1,1]. That must correctly predict success with other sizes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§