Struct mon_artist::grid::DirVector
[−]
[src]
pub struct DirVector(pub Pt, pub Direction);
Methods
impl DirVector
[src]
fn pt(&self) -> Pt
fn dir(&self) -> Direction
fn shift(&self, drow: i32, dcol: i32) -> DirVector
fn towards(&self, dir: Direction) -> DirVector
fn veer(&self, turn: Turn) -> DirVector
fn step(&self) -> DirVector
fn steps(&self, count: u32) -> DirVector
Trait Implementations
impl PartialEq for DirVector
[src]
fn eq(&self, __arg_0: &DirVector) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DirVector) -> bool
This method tests for !=
.
impl Eq for DirVector
[src]
impl Copy for DirVector
[src]
impl Clone for DirVector
[src]
fn clone(&self) -> DirVector
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more