[−][src]Trait gut::ops::Intersect
Intersection trait, describes the intersection operation between two objects.
Associated Types
type Output
Required methods
fn intersect(self, rhs: RHS) -> Self::Output
Intersect on one object with another, producing the resulting intersection. For example if [-1, 2] and [0, 4] are two closed intervals, then their intersection is a closed interval [0, 2]. Note that the intersection object can be of a different type
fn intersects(self, rhs: RHS) -> bool
Check if this object intersects another.