pub enum Align {
Center,
Top,
Bottom,
Left,
Right,
TopLeft,
TopRight,
BottomLeft,
BottomRight,
}Expand description
A point of an area: its center, an edge’s middle or a corner.
Variants§
Center
The center.
Top
The top edge’s middle.
Bottom
The bottom edge’s middle.
Left
The left edge’s middle.
Right
The right edge’s middle.
TopLeft
The top-left corner.
TopRight
The top-right corner.
BottomLeft
The bottom-left corner.
BottomRight
The bottom-right corner.
Trait Implementations§
impl Copy for Align
Source§impl<'de> Deserialize<'de> for Align
impl<'de> Deserialize<'de> for Align
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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