Trait space_partitioning::interval_tree::IntervalType [−][src]
pub trait IntervalType: Clone + PartialOrd + PartialEq { }
Expand description
A marker trait for interval types. Default implemented for standard integral and floating-point types.
Example
use space_partitioning::interval_tree::IntervalType;
#[derive(Debug, PartialOrd, PartialEq, Copy, Clone)]
struct Vec2d {
pub x: f64,
pub y: f64,
}
impl IntervalType for Vec2d {}