Trait graphics_shapes::IntersectsContains
source · 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§
sourcefn contains_shape(&self, other: &dyn Shape) -> Option<bool>
fn contains_shape(&self, other: &dyn Shape) -> Option<bool>
Returns
- Some(true) if
self
containsother
- Some(false) if
self
does not containother
- None if
other
isn’t a supportedShape
sourcefn intersects_shape(&self, other: &dyn Shape) -> Option<bool>
fn intersects_shape(&self, other: &dyn Shape) -> Option<bool>
Returns
- Some(true) if
self
intersectsother
- Some(false) if
self
does not intersectsother
- None if
other
isn’t a supportedShape
Object Safety§
This trait is not object safe.