Enum wayland_protocols::unstable::xdg_shell::v5::client::xdg_surface::ResizeEdge
source · #[non_exhaustive]#[repr(u32)]pub enum ResizeEdge {
None = 0,
Top = 1,
Bottom = 2,
Left = 4,
TopLeft = 5,
BottomLeft = 6,
Right = 8,
TopRight = 9,
BottomRight = 10,
}
Expand description
edge values for resizing
These values are used to indicate which edge of a surface is being dragged in a resize operation.
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 = 4
TopLeft = 5
BottomLeft = 6
Right = 8
TopRight = 9
BottomRight = 10
Implementations§
Trait Implementations§
source§impl Clone for ResizeEdge
impl Clone for ResizeEdge
source§fn clone(&self) -> ResizeEdge
fn clone(&self) -> ResizeEdge
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResizeEdge
impl Debug for ResizeEdge
source§impl PartialEq for ResizeEdge
impl PartialEq for ResizeEdge
source§fn eq(&self, other: &ResizeEdge) -> bool
fn eq(&self, other: &ResizeEdge) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResizeEdge
impl StructuralPartialEq for ResizeEdge
Auto Trait Implementations§
impl RefUnwindSafe for ResizeEdge
impl Send for ResizeEdge
impl Sync for ResizeEdge
impl Unpin for ResizeEdge
impl UnwindSafe for ResizeEdge
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