pub enum Position {
Top,
Left,
Right,
Bottom,
TopLeft,
TopRight,
BottomLeft,
BottomRight,
Middle,
}Expand description
Enum that describes a position within a rectangle
The position can be accessed at two levels of granularity:
The values of the enum denote the exact position (i.e: BottomLeft)
Helper functions help determine wether that position is part of a given border
(i.e: BottomLeft is both part of bottom() and left())
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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