pub trait Render: CustomWidget {
// Required method
fn renderer() -> Renderer<Self>;
}Expand description
Which render this platform uses. Implement it once, choosing per
platform with platform!:
ⓘ
impl Render for Rating {
fn renderer() -> Renderer<Self> {
platform! {
macos => mitsuami::appkit::native::<Self>().with_drawn(),
_ => Renderer::drawn(),
}
}
}Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".