pub enum Direction {
North,
South,
East,
West,
NorthEast,
NorthWest,
SouthEast,
SouthWest,
}
Expand description
The cardinal directions relative to the center of a window.
Variants§
North
Points to the top edge of a window.
South
Points to the bottom edge of a window.
East
Points to the right edge of a window.
West
Points to the left edge of a window.
NorthEast
Points to the top-right corner of a window.
NorthWest
Points to the top-left corner of a window.
SouthEast
Points to the bottom-right corner of a window.
SouthWest
Points to the bottom-left corner of a window.
Trait Implementations§
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