rangex::basic_range

Trait IteratorOps

Source
pub trait IteratorOps:
    Add<Output = Self>
    + Sub<Output = Self>
    + Rem<Output = Self>
    + Div<Output = Self>
    + Mul<Output = Self>
    + AddAssign
    + Copy
    + PartialOrd
    + PartialEq
    + Debug
    + Display {
    type Step: StepOps;

    // Required methods
    fn to_step(self) -> Self::Step;
    fn from_step(step: Self::Step) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn to_step(self) -> Self::Step

Source

fn from_step(step: Self::Step) -> 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.

Implementations on Foreign Types§

Source§

impl IteratorOps for f32

Source§

type Step = f32

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for f64

Source§

type Step = f64

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for i8

Source§

type Step = i8

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for i16

Source§

type Step = i16

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for i32

Source§

type Step = i32

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for i64

Source§

type Step = i64

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for i128

Source§

type Step = i128

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for u8

Source§

type Step = i8

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for u16

Source§

type Step = i16

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for u32

Source§

type Step = i32

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for u64

Source§

type Step = i64

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Source§

impl IteratorOps for u128

Source§

type Step = i128

Source§

fn to_step(self) -> Self::Step

Source§

fn from_step(step: Self::Step) -> Self

Implementors§