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§
Sourcefn adic_els(&self) -> impl Iterator<Item = AdicEl>
fn adic_els(&self) -> impl Iterator<Item = AdicEl>
Display-independent elements needed to draw this shape.
Sourcefn default_class(&self) -> String
fn default_class(&self) -> String
Default css class
Sourcefn viewbox_height(&self) -> u32
fn viewbox_height(&self) -> u32
Height of svg viewbox
Sourcefn viewbox_width(&self) -> u32
fn viewbox_width(&self) -> u32
Width of svg viewbox
Provided Methods§
Sourcefn viewbox_str(&self) -> String
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.