#[non_exhaustive]pub enum WindowAnchor {
Center,
Top,
Bottom,
Left,
Right,
TopLeft,
BottomLeft,
TopRight,
BottomRight,
}Expand description
Anchor rect within the parent surface See: https://wayland.app/protocols/xdg-shell#xdg_positioner:request:set_anchor_rect
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.
Trait Implementations§
Source§impl Clone for WindowAnchor
impl Clone for WindowAnchor
Source§fn clone(&self) -> WindowAnchor
fn clone(&self) -> WindowAnchor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowAnchor
Source§impl Debug for WindowAnchor
impl Debug for WindowAnchor
Source§impl Default for WindowAnchor
impl Default for WindowAnchor
Source§fn default() -> WindowAnchor
fn default() -> WindowAnchor
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowAnchor
impl PartialEq for WindowAnchor
impl StructuralPartialEq for WindowAnchor
Auto Trait Implementations§
impl Freeze for WindowAnchor
impl RefUnwindSafe for WindowAnchor
impl Send for WindowAnchor
impl Sync for WindowAnchor
impl Unpin for WindowAnchor
impl UnsafeUnpin for WindowAnchor
impl UnwindSafe for WindowAnchor
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