Trait BoundsProvider

Source
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§

Source

type Id: Clone

Identifier of the bounds provider.

Required Methods§

Source

fn bounds(&self) -> Rect<f32>

Returns bounds of the bounds provider.

Source

fn id(&self) -> Self::Id

Returns id of the bounds provider.

Implementors§