alloy::geometry

Trait Encloses

source
pub trait Encloses<Rhs: ?Sized = Self> {
    // Required method
    fn encloses(&self, other: &Rhs) -> bool;
}
Expand description

A trait for objects that can be tested for enclosure.

Required Methods§

source

fn encloses(&self, other: &Rhs) -> bool

Determines if this object encloses another object.

  • other - The other object to check for enclosure against.

Implementors§