pub trait Intersects<S> {
type Result;
// Required method
fn intersects(&self, shape: S) -> Option<Self::Result>;
}Expand description
Trait for shape intersection operations.
Required Associated Types§
Required Methods§
Sourcefn intersects(&self, shape: S) -> Option<Self::Result>
fn intersects(&self, shape: S) -> Option<Self::Result>
Returns an intersection result based on the shape or None if there is no intersection.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".