Trait Bound

Source
pub trait Bound {
    // Required method
    fn bound(&self) -> BoundingRect;

    // Provided method
    fn overlaps<B>(&self, other: &B) -> bool
       where B: Bound { ... }
}
Expand description

Any object that has a bounding rect

Required Methods§

Provided Methods§

Source

fn overlaps<B>(&self, other: &B) -> bool
where B: Bound,

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.

Implementors§