pub enum Direction {
North,
NorthEast,
East,
SouthEast,
South,
SouthWest,
West,
NorthWest,
}
Variantsยง
Implementationsยง
Sourceยงimpl Direction
impl Direction
pub fn to_vector2(&self) -> Vector2
pub fn rotate_90(&self, orientation: Orientation) -> Direction
pub fn rotate_45(&self, orientation: Orientation) -> Direction
Trait Implementationsยง
impl Copy for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementationsยง
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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