pub struct SwapBehavior(/* private fields */);Expand description
C++ enum: QSurfaceFormat::SwapBehavior.
Implementations§
Source§impl SwapBehavior
impl SwapBehavior
Sourcepub const DefaultSwapBehavior: SwapBehavior
pub const DefaultSwapBehavior: SwapBehavior
C++ enum variant: DefaultSwapBehavior = 0
Sourcepub const SingleBuffer: SwapBehavior
pub const SingleBuffer: SwapBehavior
C++ enum variant: SingleBuffer = 1
Sourcepub const DoubleBuffer: SwapBehavior
pub const DoubleBuffer: SwapBehavior
C++ enum variant: DoubleBuffer = 2
Sourcepub const TripleBuffer: SwapBehavior
pub const TripleBuffer: SwapBehavior
C++ enum variant: TripleBuffer = 3
Trait Implementations§
Source§impl Clone for SwapBehavior
impl Clone for SwapBehavior
Source§fn clone(&self) -> SwapBehavior
fn clone(&self) -> SwapBehavior
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 moreSource§impl Debug for SwapBehavior
impl Debug for SwapBehavior
Source§impl From<SwapBehavior> for c_int
impl From<SwapBehavior> for c_int
Source§fn from(value: SwapBehavior) -> Self
fn from(value: SwapBehavior) -> Self
Converts to this type from the input type.
Source§impl From<i32> for SwapBehavior
impl From<i32> for SwapBehavior
Source§impl PartialEq for SwapBehavior
impl PartialEq for SwapBehavior
Source§fn eq(&self, other: &SwapBehavior) -> bool
fn eq(&self, other: &SwapBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SwapBehavior
impl Eq for SwapBehavior
impl StructuralPartialEq for SwapBehavior
Auto Trait Implementations§
impl Freeze for SwapBehavior
impl RefUnwindSafe for SwapBehavior
impl Send for SwapBehavior
impl Sync for SwapBehavior
impl Unpin for SwapBehavior
impl UnsafeUnpin for SwapBehavior
impl UnwindSafe for SwapBehavior
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