Skip to main content

Iterate

Trait Iterate 

Source
pub trait Iterate: Clone {
    // Required method
    fn same(&self, other: &Self) -> bool;
}
Expand description

A value an iteration can tell apart from another, bit for bit: what Repeat compares seeds with.

Required Methods§

Source

fn same(&self, other: &Self) -> bool

Whether self and other are the same value — the same enclosure, not merely overlapping ones.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Iterate for f64

Source§

fn same(&self, other: &Self) -> bool

Source§

impl<A: Iterate, B: Iterate> Iterate for (A, B)

Source§

fn same(&self, other: &Self) -> bool

Source§

impl<T: Iterate, const N: usize> Iterate for [T; N]

Source§

fn same(&self, other: &Self) -> bool

Implementors§

Source§

impl Iterate for Scalar

Source§

impl<const N: usize> Iterate for Vector<N>