Trait AnalogNumRange

Source
pub trait AnalogNumRange<T> {
    // Required methods
    fn begin(&self) -> T;
    fn end(&self) -> T;

    // Provided method
    fn count(&self) -> T
       where T: Sub<T, Output = T> + Copy { ... }
}

Required Methods§

Source

fn begin(&self) -> T

Source

fn end(&self) -> T

Provided Methods§

Source

fn count(&self) -> T
where T: Sub<T, Output = T> + Copy,

Implementations on Foreign Types§

Source§

impl<T> AnalogNumRange<T> for Range<T>
where T: Copy,

Source§

fn begin(&self) -> T

Source§

fn end(&self) -> T

Implementors§

Source§

impl<T> AnalogNumRange<T> for T
where T: Add<u32, Output = T> + Copy,