pub trait ToGridSpace<S, const N: usize> {
    type Item;

    // Required method
    fn into_grid_space(self, step: S) -> IntoGridSpace<Self::Item, N>;
}
Expand description

Helper trait for grid_space

Required Associated Types§

source

type Item

The item that this is a grid space over

Required Methods§

source

fn into_grid_space(self, step: S) -> IntoGridSpace<Self::Item, N>

Create the grid space

Implementations on Foreign Types§

source§

impl<T, const N: usize> ToGridSpace<[usize; N], N> for RangeInclusive<[T; N]>where RangeInclusive<T>: ToLinSpace,

§

type Item = <RangeInclusive<T> as ToLinSpace>::Item

source§

fn into_grid_space(self, steps: [usize; N]) -> IntoGridSpace<Self::Item, N>

source§

impl<T, const N: usize> ToGridSpace<[usize; N], N> for Range<[T; N]>where Range<T>: ToLinSpace,

§

type Item = <Range<T> as ToLinSpace>::Item

source§

fn into_grid_space(self, steps: [usize; N]) -> IntoGridSpace<Self::Item, N>

source§

impl<T, const N: usize> ToGridSpace<usize, N> for Range<[T; N]>where Range<T>: ToLinSpace,

§

type Item = <Range<T> as ToLinSpace>::Item

source§

fn into_grid_space(self, steps: usize) -> IntoGridSpace<Self::Item, N>

source§

impl<T, const N: usize> ToGridSpace<usize, N> for RangeInclusive<[T; N]>where RangeInclusive<T>: ToLinSpace,

Implementors§