Trait CoordIter

Source
pub trait CoordIter {
    type Item: Add<Output = Self::Item> + Copy + Into<f64> + Mul<Output = Self::Item> + Sub<Output = Self::Item>;
    type Iter<'a>: Iterator<Item = Self::Item>
       where Self: 'a;

    // Required method
    fn coord_iter(&self) -> Self::Iter<'_>;
}
Expand description

helper trait for computing edit distances by iteration by iteration over primitives

Required Associated Types§

Source

type Item: Add<Output = Self::Item> + Copy + Into<f64> + Mul<Output = Self::Item> + Sub<Output = Self::Item>

the item type

Source

type Iter<'a>: Iterator<Item = Self::Item> where Self: 'a

the iterator type

Required Methods§

Source

fn coord_iter(&self) -> Self::Iter<'_>

returns an iterator over coordinates

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<E: Add<Output = E> + Copy + Into<f64> + Mul<Output = E> + Sub<Output = E>> CoordIter for [E]

Source§

type Item = E

Source§

type Iter<'a> = Copied<Iter<'a, E>> where Self: 'a

Source§

fn coord_iter(&self) -> Self::Iter<'_>

Source§

impl<E: Add<Output = E> + Copy + Into<f64> + Mul<Output = E> + Sub<Output = E>> CoordIter for Vec<E>

Source§

type Item = E

Source§

type Iter<'a> = Copied<Iter<'a, E>> where Self: 'a

Source§

fn coord_iter(&self) -> Self::Iter<'_>

Source§

impl<E: Add<Output = E> + Copy + Into<f64> + Mul<Output = E> + Sub<Output = E>, const N: usize> CoordIter for [E; N]

Source§

type Item = E

Source§

type Iter<'a> = Copied<Iter<'a, E>> where Self: 'a

Source§

fn coord_iter(&self) -> Self::Iter<'_>

Source§

impl<T: ?Sized + CoordIter> CoordIter for &T

Source§

type Item = <T as CoordIter>::Item

Source§

type Iter<'a> = <T as CoordIter>::Iter<'a> where Self: 'a

Source§

fn coord_iter(&self) -> Self::Iter<'_>

Implementors§