pub trait IntersectsContains:
Sized
+ Shape
+ ContainsShape
+ IntersectsShape {
// Provided methods
fn contains_shape(&self, other: &(dyn Shape + 'static)) -> Option<bool> { ... }
fn intersects_shape(&self, other: &(dyn Shape + 'static)) -> Option<bool> { ... }
}
Provided Methods§
Sourcefn contains_shape(&self, other: &(dyn Shape + 'static)) -> Option<bool>
fn contains_shape(&self, other: &(dyn Shape + 'static)) -> 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 + 'static)) -> Option<bool>
fn intersects_shape(&self, other: &(dyn Shape + 'static)) -> Option<bool>
Returns
- Some(true) if
self
intersectsother
- Some(false) if
self
does not intersectsother
- None if
other
isn’t a supportedShape
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.