pub enum CompassPosition {
NW,
N,
NE,
W,
Center,
E,
SW,
S,
SE,
}Expand description
This enum is used by the ImageWidget, which controls the positioning of the image being
rendered within the bounds of the Widget.
Variants§
NW
Upper left-hand corner of the bounds.
N
Centered top of the bounds.
NE
Upper right-hand corner of the bounds.
W
Centered left side of the bounds.
Center
Center of the bounds.
E
Centered right side of the bounds.
SW
Lower left-hand corner of the bounds.
S
Bottom center of the bounds.
SE
Lower right-hand corner of the bounds.
Trait Implementations§
Source§impl Clone for CompassPosition
impl Clone for CompassPosition
Source§fn clone(&self) -> CompassPosition
fn clone(&self) -> CompassPosition
Returns a duplicate of the value. Read more
1.0.0 · 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 CompassPosition
impl Debug for CompassPosition
impl Copy for CompassPosition
Auto Trait Implementations§
impl Freeze for CompassPosition
impl RefUnwindSafe for CompassPosition
impl Send for CompassPosition
impl Sync for CompassPosition
impl Unpin for CompassPosition
impl UnsafeUnpin for CompassPosition
impl UnwindSafe for CompassPosition
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