pub trait IntersectsContains: Shape + ContainsShape + IntersectsShape + Sized {
    // Provided methods
    fn contains_shape(&self, other: &dyn Shape) -> Option<bool> { ... }
    fn intersects_shape(&self, other: &dyn Shape) -> Option<bool> { ... }
}

Provided Methods§

source

fn contains_shape(&self, other: &dyn Shape) -> Option<bool>

Returns

  • Some(true) if self contains other
  • Some(false) if self does not contain other
  • None if other isn’t a supported Shape
source

fn intersects_shape(&self, other: &dyn Shape) -> Option<bool>

Returns

  • Some(true) if self intersects other
  • Some(false) if self does not intersects other
  • None if other isn’t a supported Shape

Object Safety§

This trait is not object safe.

Implementors§