Trait Betweenable

Source
pub trait Betweenable
where Self: Copy,
{ // Required method fn between(x: Self, y: Self) -> Option<Self>; }

Required Methods§

Source

fn between(x: Self, y: Self) -> Option<Self>

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<X> Betweenable for X
where X: Copy + Shr<i8, Output = X> + Add<X, Output = X> + BitAnd<X, Output = X> + From<u8> + PartialOrd,