[−][src]Struct sfcpl::idx::Idx2D
Fields
x: usize
y: 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]
x: T,
y: T,
w: usize,
h: usize
) -> Option<Self>
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,