Trait IntervalType

Source
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.

Implementations on Foreign Types§

Source§

impl IntervalType for f32

Source§

impl IntervalType for f64

Source§

impl IntervalType for i8

Source§

impl IntervalType for i32

Source§

impl IntervalType for isize

Source§

impl IntervalType for u8

Source§

impl IntervalType for u32

Source§

impl IntervalType for usize

Implementors§