#[repr(i32)]pub enum SurfaceRole {
Main = 0,
Aside = 1,
Float = 2,
}Expand description
The arbitrated role that drives how the platform presents a surface:
Main = a top-level window/primary, Aside = a docked split companion,
Float = a positioned popup (it keeps its edge/center placement but never
splits the main). Distinguishes a float-popup-at-edge from an aside-dock.
Variants§
Trait Implementations§
Source§impl Clone for SurfaceRole
impl Clone for SurfaceRole
Source§fn clone(&self) -> SurfaceRole
fn clone(&self) -> SurfaceRole
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 SurfaceRole
Source§impl Debug for SurfaceRole
impl Debug for SurfaceRole
Source§impl Default for SurfaceRole
impl Default for SurfaceRole
Source§fn default() -> SurfaceRole
fn default() -> SurfaceRole
Returns the “default value” for a type. Read more
impl Eq for SurfaceRole
Source§impl PartialEq for SurfaceRole
impl PartialEq for SurfaceRole
Source§fn eq(&self, other: &SurfaceRole) -> bool
fn eq(&self, other: &SurfaceRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SurfaceRole
Auto Trait Implementations§
impl Freeze for SurfaceRole
impl RefUnwindSafe for SurfaceRole
impl Send for SurfaceRole
impl Sync for SurfaceRole
impl Unpin for SurfaceRole
impl UnsafeUnpin for SurfaceRole
impl UnwindSafe for SurfaceRole
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