pub struct Directions(u8, u16);Expand description
A Set of Directions.
Internally represented by a bitfield, where the bits correspond as follows:
- 0: North
- 1: East
- 2: South
- 3: West
Also includes the distance to the target.
Tuple Fields§
§0: u8§1: u16Implementations§
Trait Implementations§
Source§impl Clone for Directions
impl Clone for Directions
Source§fn clone(&self) -> Directions
fn clone(&self) -> Directions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Directions
impl Debug for Directions
Source§impl PartialEq for Directions
impl PartialEq for Directions
impl Copy for Directions
impl Eq for Directions
impl StructuralPartialEq for Directions
Auto Trait Implementations§
impl Freeze for Directions
impl RefUnwindSafe for Directions
impl Send for Directions
impl Sync for Directions
impl Unpin for Directions
impl UnwindSafe for Directions
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