pub trait IntersectsContains: Shape + ContainsShape + IntersectsShape + Sized {
// 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
Object Safety§
This trait is not object safe.