Skip to main content

Glyph

Trait Glyph 

Source
pub trait Glyph: Copy {
    // Required method
    fn svg(&self) -> &'static str;
}
Expand description

Trait for types that provide SVG content for rendering.

Required Methods§

Source

fn svg(&self) -> &'static str

Returns the inner SVG content as a static string.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§