DisplayShape

Trait DisplayShape 

Source
pub trait DisplayShape {
    // Required methods
    fn adic_els(&self) -> impl Iterator<Item = AdicEl>;
    fn default_class(&self) -> String;
    fn viewbox_height(&self) -> u32;
    fn viewbox_width(&self) -> u32;

    // Provided method
    fn viewbox_str(&self) -> String { ... }
}
Expand description

Trait for shapes that can be displayed

Required Methods§

Source

fn adic_els(&self) -> impl Iterator<Item = AdicEl>

Display-independent elements needed to draw this shape.

Source

fn default_class(&self) -> String

Default css class

Source

fn viewbox_height(&self) -> u32

Height of svg viewbox

Source

fn viewbox_width(&self) -> u32

Width of svg viewbox

Provided Methods§

Source

fn viewbox_str(&self) -> String

Viewbox string

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§