pub trait Composition<B: Backend> {
// Required methods
fn new(background_color: Color) -> Self;
fn clear(&mut self);
fn insert(&mut self, order: Order, layer: Layer<B>);
fn remove(&mut self, order: Order);
}
Expand description
A group of ordered layers.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.