Trait glamour::traits::Contains

source ·
pub trait Contains<T> {
    // Required method
    fn contains(&self, thing: &T) -> bool;
}
Expand description

General trait for the contains() method.

Coordinates exactly on the upper bound are considered to be contained.

See also: Intersection, which is different in this regard.

Required Methods§

source

fn contains(&self, thing: &T) -> bool

Returns true if thing is inside self.

Implementors§

source§

impl<T: Unit> Contains<Point2<T>> for Box2<T>

source§

impl<T: Unit> Contains<Point2<T>> for Rect<T>