pub enum Align {
NW,
N,
NE,
W,
Center,
E,
SW,
S,
SE,
}Expand description
9-point alignment inside a rectangle. Used by Anchor::Win: the
chosen alignment picks the same point on both the target and the
overlay, so Center places the overlay’s center on the target’s
center, NW flush-mounts top-left to top-left, N puts the
overlay’s top edge midpoint on the target’s top edge midpoint, etc.
Variants§
Trait Implementations§
impl Copy for Align
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Align
impl UnwindSafe for Align
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