Enum wayland_protocols::xdg_shell::client::xdg_positioner::Gravity
source · #[non_exhaustive]#[repr(u32)]pub enum Gravity {
None = 0,
Top = 1,
Bottom = 2,
Left = 3,
Right = 4,
TopLeft = 5,
BottomLeft = 6,
TopRight = 7,
BottomRight = 8,
}
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.
None = 0
Top = 1
Bottom = 2
Left = 3
Right = 4
TopLeft = 5
BottomLeft = 6
TopRight = 7
BottomRight = 8
Implementations§
Trait Implementations§
source§impl PartialEq for Gravity
impl PartialEq for Gravity
impl Copy for Gravity
impl StructuralPartialEq for Gravity
Auto Trait Implementations§
impl RefUnwindSafe for Gravity
impl Send for Gravity
impl Sync for Gravity
impl Unpin for Gravity
impl UnwindSafe for Gravity
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