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
selfcontainsother - Some(false) if
selfdoes not containother - None if
otherisn’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
selfintersectsother - Some(false) if
selfdoes not intersectsother - None if
otherisn’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.