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 {}
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.