pub trait HTMLDrawable {
// Required method
fn draw(self, canvas: &mut HTMLCanvas);
}Expand description
Types that can draw themselves onto an HTMLCanvas (typically cotis-defaults commands).
Required Methods§
Sourcefn draw(self, canvas: &mut HTMLCanvas)
fn draw(self, canvas: &mut HTMLCanvas)
Renders this command onto canvas, usually via ensure_command_element and CSS pushes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".