pub enum Corner {
NW,
NE,
SW,
SE,
}Expand description
Which corner of a rectangle serves as its anchor point. Used by
ScreenAt and Cursor (whose flip-on-overflow logic specifically
pivots on real corners). For window-relative anchoring see Align.
Variants§
Trait Implementations§
impl Copy for Corner
impl Eq for Corner
impl StructuralPartialEq for Corner
Auto Trait Implementations§
impl Freeze for Corner
impl RefUnwindSafe for Corner
impl Send for Corner
impl Sync for Corner
impl Unpin for Corner
impl UnsafeUnpin for Corner
impl UnwindSafe for Corner
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