pub enum Position {
Top,
Middle,
Bottom,
Left,
Right,
Inside,
Offset(f64),
}Expand description
Where a component sits relative to its container.
Variants§
Top
The top edge.
Middle
The vertical centre.
Bottom
The bottom edge.
Left
The left edge.
Right
The right edge.
Inside
Inside the container.
Offset(f64)
A distance from the edge.
Trait Implementations§
impl Copy for Position
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 UnsafeUnpin 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