#[non_exhaustive]pub struct PresentMethod(pub u32);Expand description
different method to set the surface fullscreen
Hints to indicate to the compositor how to deal with a conflict between the dimensions of the surface and the dimensions of the output. The compositor is free to ignore this parameter.
Tuple Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.0: u32Implementations§
Trait Implementations§
Source§impl Clone for PresentMethod
impl Clone for PresentMethod
Source§fn clone(&self) -> PresentMethod
fn clone(&self) -> PresentMethod
Returns a duplicate 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 PresentMethod
impl Debug for PresentMethod
Source§impl From<PresentMethod> for u32
impl From<PresentMethod> for u32
Source§fn from(val: PresentMethod) -> u32
fn from(val: PresentMethod) -> u32
Converts to this type from the input type.
Source§impl Hash for PresentMethod
impl Hash for PresentMethod
Source§impl Ord for PresentMethod
impl Ord for PresentMethod
Source§fn cmp(&self, other: &PresentMethod) -> Ordering
fn cmp(&self, other: &PresentMethod) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PresentMethod
impl PartialEq for PresentMethod
Source§impl PartialOrd for PresentMethod
impl PartialOrd for PresentMethod
Source§impl TryFrom<u32> for PresentMethod
impl TryFrom<u32> for PresentMethod
impl Copy for PresentMethod
impl Eq for PresentMethod
impl StructuralPartialEq for PresentMethod
Auto Trait Implementations§
impl Freeze for PresentMethod
impl RefUnwindSafe for PresentMethod
impl Send for PresentMethod
impl Sync for PresentMethod
impl Unpin for PresentMethod
impl UnsafeUnpin for PresentMethod
impl UnwindSafe for PresentMethod
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