pub trait DrawPrimitiveSink {
// Required methods
fn push_shape(&mut self, params: ShapeDrawParams);
fn push_image(&mut self, params: ImageDrawParams);
fn push_shadow(
&mut self,
shadow_primitive: ShadowPrimitive,
layer_bounds: Rect,
layer: &GraphicsLayer,
clip: Option<Rect>,
);
}Required Methods§
fn push_shape(&mut self, params: ShapeDrawParams)
fn push_image(&mut self, params: ImageDrawParams)
fn push_shadow( &mut self, shadow_primitive: ShadowPrimitive, layer_bounds: Rect, layer: &GraphicsLayer, clip: Option<Rect>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".