Enum hex_coordinates::DoubledSystem
source · [−]pub enum DoubledSystem {
Width,
Height,
}Expand description
Double coordinate variants.
Variants
Width
╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲
│0,0│2,0│4,0│6,0│8,0│
╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲
|1,1|3,1|5,1|7,1|9,1|
╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱
│0,2│2,2│4,2│6,2│8,2│
╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲
|1,3|3,3|5,3|7,3|9,3|
╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱
│0,4│2,4│4,4│6,4│8,4│
╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱ ╲ ╱Height
___ ___ ___ ___
╱0,0╲___╱2,0╲___╱4,0╲___╱6,0╲___
╲___╱1,1╲___╱3,1╲___╱5,1╲___╱7,1╲
╱0,2╲___╱2,2╲___╱4,2╲___╱6,2╲___╱
╲___╱1,3╲___╱3,3╲___╱5,3╲___╱7,3╲
╱0,4╲___╱2,4╲___╱4,4╲___╱6,4╲___╱
╲___╱1,5╲___╱3,5╲___╱5,5╲___╱7,5╲
╱0,6╲___╱2,6╲___╱4,6╲___╱6,6╲___╱
╲___╱1,7╲___╱3,7╲___╱5,7╲___╱7,7╲
╱0,8╲___╱2,8╲___╱4,8╲___╱6,8╲___╱
╲___╱1,9╲___╱3,9╲___╱5,9╲___╱7,9╲
╲___╱ ╲___╱ ╲___╱ ╲___╱Trait Implementations
sourceimpl Clone for DoubledSystem
impl Clone for DoubledSystem
sourcefn clone(&self) -> DoubledSystem
fn clone(&self) -> DoubledSystem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DoubledSystem
impl Debug for DoubledSystem
sourceimpl PartialEq<DoubledSystem> for DoubledSystem
impl PartialEq<DoubledSystem> for DoubledSystem
sourcefn eq(&self, other: &DoubledSystem) -> bool
fn eq(&self, other: &DoubledSystem) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Copy for DoubledSystem
impl Eq for DoubledSystem
impl StructuralEq for DoubledSystem
impl StructuralPartialEq for DoubledSystem
Auto Trait Implementations
impl RefUnwindSafe for DoubledSystem
impl Send for DoubledSystem
impl Sync for DoubledSystem
impl Unpin for DoubledSystem
impl UnwindSafe for DoubledSystem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more