pub trait Shape: Sealed {
// Required method
fn as_shape(&self) -> CompositionShape;
}Expand description
A shape that can be appended to a CompositionShapeCollection.
This trait is sealed: only the shape types in this crate implement it.
Required Methods§
Sourcefn as_shape(&self) -> CompositionShape
fn as_shape(&self) -> CompositionShape
Returns this shape as the shared CompositionShape base type.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".