pub enum Alignment {
Center,
Left,
Right,
Top,
Bottom,
TopLeft,
TopRight,
BottomLeft,
BottomRight,
}
Expand description
How something should be aligned.
Variants
Center
Aligned to the center.
Left
Aligned to the center of the left side.
Right
Aligned to the center of the right side.
Top
Aligned to the center of the top side.
Bottom
Aligned to the center of the bottom side.
TopLeft
Aligned to the top left corner.
TopRight
Aligned to the top right corner.
BottomLeft
Aligned to the bottom left corner.
BottomRight
Aligned to the bottom right corner.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnwindSafe for Alignment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more