#[non_exhaustive]pub enum Anchor {
TopStart,
Top,
TopEnd,
Start,
Center,
End,
BottomStart,
Bottom,
BottomEnd,
Overlay,
}Expand description
Where a region sits on its surface. Start and end follow the
direction: start is left in a left-to-right interface, right in a
right-to-left one (Surface::right_to_left).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopStart
The top start corner.
Top
The top edge, centred.
TopEnd
The top end corner.
Start
The start edge, centred vertically.
Center
The centre, between the regions around it.
End
The end edge, centred vertically.
BottomStart
The bottom start corner.
Bottom
The bottom edge, centred.
BottomEnd
The bottom end corner.
Overlay
The whole surface, over the other regions: it neither avoids them nor makes them move. Its cards are centred.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Anchor
impl<'de> Deserialize<'de> for Anchor
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 Copy for Anchor
impl Eq for Anchor
impl StructuralPartialEq for Anchor
Auto Trait Implementations§
impl Freeze for Anchor
impl RefUnwindSafe for Anchor
impl Send for Anchor
impl Sync for Anchor
impl Unpin for Anchor
impl UnsafeUnpin for Anchor
impl UnwindSafe for Anchor
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