pub enum OverlayPosition {
Anchor(Anchor),
At(u16, u16),
Percent(String, String),
}Expand description
How an overlay’s position is expressed.
Variants§
Anchor(Anchor)
Position relative to an anchor point.
At(u16, u16)
Absolute coordinates (row, col).
Percent(String, String)
Percentage coordinates as strings, e.g. "50%".
Trait Implementations§
Source§impl Clone for OverlayPosition
impl Clone for OverlayPosition
Source§fn clone(&self) -> OverlayPosition
fn clone(&self) -> OverlayPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OverlayPosition
impl Debug for OverlayPosition
Source§impl PartialEq for OverlayPosition
impl PartialEq for OverlayPosition
Source§fn eq(&self, other: &OverlayPosition) -> bool
fn eq(&self, other: &OverlayPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OverlayPosition
Auto Trait Implementations§
impl Freeze for OverlayPosition
impl RefUnwindSafe for OverlayPosition
impl Send for OverlayPosition
impl Sync for OverlayPosition
impl Unpin for OverlayPosition
impl UnsafeUnpin for OverlayPosition
impl UnwindSafe for OverlayPosition
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