pub trait IconShape:
Clone
+ PartialEq
+ 'static {
const TITLE: Option<&'static str> = None;
const WIDTH: Option<&'static str> = None;
const HEIGHT: Option<&'static str> = None;
const FILL: Option<&'static str> = _;
const STROKE: Option<&'static str> = None;
const STROKE_WIDTH: Option<&'static str> = None;
const STROKE_LINE_CAP: Option<&'static str> = None;
const STROKE_LINE_JOIN: Option<&'static str> = None;
const VIEW_BOX: Option<&'static str> = None;
const XMLNS: Option<&'static str> = _;
// Required method
fn child_elements(&self) -> Element;
}Expand description
This trait is used to override IconProps.
Implements this trait when adding a new real icon.
Provided Associated Constants§
Sourceconst STROKE_WIDTH: Option<&'static str> = None
const STROKE_WIDTH: Option<&'static str> = None
Default stroke width of the SVG element (e.g., “2”).
Sourceconst STROKE_LINE_CAP: Option<&'static str> = None
const STROKE_LINE_CAP: Option<&'static str> = None
Default stroke line cap style (e.g., “round”, “butt”, “square”).
Sourceconst STROKE_LINE_JOIN: Option<&'static str> = None
const STROKE_LINE_JOIN: Option<&'static str> = None
Default stroke line join style (e.g., “round”, “miter”, “bevel”).
Required Methods§
Sourcefn child_elements(&self) -> Element
fn child_elements(&self) -> Element
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".