EndPointTrait

Trait EndPointTrait 

Source
pub trait EndPointTrait<T>:
    Sized
    + PartialOrd
    + Sub<Output = T>
    + Add<Output = T>
    + Clone
    + Copy { }
Expand description

Enpoint of an interval, aka bound of a range. Special trait to avoid repeating all the bound on endpoint.

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.

Implementors§

Source§

impl<T, All> EndPointTrait<T> for All
where All: PartialOrd + Sub<Output = T> + Add<Output = T> + Clone + Copy,