pub trait Component {
const NAME: &'static str;
const DOC: &'static str = "";
const PROPS: &'static [Prop] = _;
// Required method
fn build(props: &Props) -> Widget;
}Expand description
A custom component — implemented by the code yog build generates
from a <Component> .yui (see the module docs).
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".