Trait Bounded

Source
pub trait Bounded<B: Bound> {
    // Required method
    fn bound(&self) -> Option<B>;
}
Expand description

The shape that could be put inside the specified bound.

Required Methods§

Source

fn bound(&self) -> Option<B>

Returns bounding shape instance.

If the shape is borderless and doesn’t fit into any bounding shape then None should be returned.

Implementors§

Source§

impl<B: Bound, S: Shape + Bounded<B>, M: Material> Bounded<B> for Covered<S, M>

Source§

impl<T: Bound + Shape + Clone> Bounded<T> for T