pub enum AlignMode {
Left,
Right,
Bottom,
Top,
CenterHorizontal,
CenterVertical,
ToTheRight,
ToTheLeft,
Beneath,
Above,
}
Expand description
An enumeration of possible alignment modes between two geometric shapes.
Variants§
Left
Align the left sides of the two shapes.
Right
Align the right sides of the two shapes.
Bottom
Align the bottom sides of the two shapes.
Top
Align the top sides of the two shapes.
CenterHorizontal
Align the centers of the two shapes horizontally.
CenterVertical
Align the centers of the two shapes vertically.
ToTheRight
Align the left side of one shape to the right of the right side of the other.
ToTheLeft
Align the right side of one shape to the left of the left side of the other.
Beneath
Align the top side of one shape beneath the bottom side of the other.
Above
Align the bottom side of one shape above the top side of the other.
Trait Implementations§
source§impl<'de> Deserialize<'de> for AlignMode
impl<'de> Deserialize<'de> for AlignMode
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
source§impl PartialEq for AlignMode
impl PartialEq for AlignMode
impl Copy for AlignMode
impl Eq for AlignMode
impl StructuralPartialEq for AlignMode
Auto Trait Implementations§
impl RefUnwindSafe for AlignMode
impl Send for AlignMode
impl Sync for AlignMode
impl Unpin for AlignMode
impl UnwindSafe for AlignMode
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