pub enum PlaceMode {
Corner(Corner),
Side(Side),
SideCenter(Side),
Center,
CenterX,
CenterY,
}
Expand description
An enumeration of possible ways to place a geometric shape at a point.
Variants§
Corner(Corner)
Place the corner of a geometric shape at a point.
Side(Side)
Place the side of a geometric shape at a point’s coordinate along the same axis.
SideCenter(Side)
Place the center of a side of a geometric shape at a point.
Center
Place the center of a geometric shape at a point.
CenterX
Place the x-coordinate of a geometric shape’s center at the x-coordinate of a point.
CenterY
Place the y-coordinate of a geometric shape’s center at the y-coordinate of a point.
Trait Implementations§
source§impl<'de> Deserialize<'de> for PlaceMode
impl<'de> Deserialize<'de> for PlaceMode
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 PlaceMode
impl PartialEq for PlaceMode
impl Copy for PlaceMode
impl Eq for PlaceMode
impl StructuralPartialEq for PlaceMode
Auto Trait Implementations§
impl RefUnwindSafe for PlaceMode
impl Send for PlaceMode
impl Sync for PlaceMode
impl Unpin for PlaceMode
impl UnwindSafe for PlaceMode
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