[][src]Struct sfcpl::idx::Idx2D

pub struct Idx2D {
    pub x: usize,
    pub y: usize,
    // some fields omitted
}

Fields

x: usizey: usize

Implementations

impl Idx2D[src]

pub fn new<T: TryInto<isize>>(x: T, y: T, w: usize, h: usize) -> Self[src]

pub fn try_new<T: TryInto<isize>>(
    x: T,
    y: T,
    w: usize,
    h: usize
) -> Option<Self>
[src]

pub fn try_add<T: TryInto<isize>>(&self, rhs: (T, T)) -> Option<Self>[src]

pub fn try_sub<T: TryInto<isize>>(&self, rhs: (T, T)) -> Option<Self>[src]

pub fn neighber4(&self) -> impl Iterator<Item = Idx2D>[src]

pub fn neighber8(&self) -> impl Iterator<Item = Idx2D>[src]

Trait Implementations

impl Clone for Idx2D[src]

impl Copy for Idx2D[src]

impl Debug for Idx2D[src]

impl Eq for Idx2D[src]

impl<T> Index<Idx2D> for Grid<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<Idx2D> for Grid<T>[src]

impl PartialEq<Idx2D> for Idx2D[src]

impl StructuralEq for Idx2D[src]

impl StructuralPartialEq for Idx2D[src]

Auto Trait Implementations

impl RefUnwindSafe for Idx2D

impl Send for Idx2D

impl Sync for Idx2D

impl Unpin for Idx2D

impl UnwindSafe for Idx2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,