pub trait IconShape:
Clone
+ PartialEq
+ 'static {
const TITLE: Option<&'static str> = None;
const WIDTH: Option<u32> = None;
const HEIGHT: Option<u32> = None;
const FILL: Option<&'static str> = None;
const STROKE: Option<&'static str> = None;
const VIEW_BOX: Option<&'static str> = None;
// Required method
fn child_elements(&self) -> Result<VNode, RenderError>;
}Expand description
This trait is used to override IconProps.
Implements this trait when adding a new real icon.
Provided Associated Constants§
Required Methods§
Sourcefn child_elements(&self) -> Result<VNode, RenderError>
fn child_elements(&self) -> Result<VNode, RenderError>
Returns the SVG child elements (paths, circles, etc.) that define the icon shape.
§Errors
Returns Err if rendering the child elements fails.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".