pub enum Diagonal {
Main,
Anti,
}Expand description
Which corners a heightfield cell’s two triangles share.
Variants§
Main
The cell’s (column, row) corner and its (column + 1, row + 1) corner.
Anti
The cell’s (column + 1, row) corner and its (column, row + 1) corner.
Trait Implementations§
impl Copy for Diagonal
impl Eq for Diagonal
impl StructuralPartialEq for Diagonal
Auto Trait Implementations§
impl Forget for Diagonal
impl Freeze for Diagonal
impl RefUnwindSafe for Diagonal
impl Send for Diagonal
impl Sync for Diagonal
impl Unpin for Diagonal
impl UnsafeUnpin for Diagonal
impl UnwindSafe for Diagonal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.