pub trait BoundsProvider {
type Id: Clone;
// Required methods
fn bounds(&self) -> Rect<f32>;
fn id(&self) -> Self::Id;
}Expand description
A trait for anything that has rectangular bounds.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".