pub struct WlOutputMode(pub u32);Expand description
mode information
These flags describe properties of an output mode. They are used in the flags bitfield of the mode event.
Tuple Fields§
§0: u32Implementations§
Source§impl WlOutputMode
impl WlOutputMode
Source§impl WlOutputMode
impl WlOutputMode
pub const fn empty() -> Self
pub const fn is_empty(self) -> bool
pub const fn contains(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
pub const fn insert(&mut self, other: Self)
pub const fn remove(&mut self, other: Self)
pub const fn toggle(&mut self, other: Self)
pub const fn set(&mut self, other: Self, value: bool)
pub const fn intersection(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn all_known() -> Self
Trait Implementations§
Source§impl BitAnd for WlOutputMode
impl BitAnd for WlOutputMode
Source§impl BitAndAssign for WlOutputMode
impl BitAndAssign for WlOutputMode
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for WlOutputMode
impl BitOr for WlOutputMode
Source§impl BitOrAssign for WlOutputMode
impl BitOrAssign for WlOutputMode
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for WlOutputMode
impl BitXor for WlOutputMode
Source§impl BitXorAssign for WlOutputMode
impl BitXorAssign for WlOutputMode
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for WlOutputMode
impl Clone for WlOutputMode
Source§fn clone(&self) -> WlOutputMode
fn clone(&self) -> WlOutputMode
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 WlOutputMode
impl Debug for WlOutputMode
Source§impl Default for WlOutputMode
impl Default for WlOutputMode
Source§fn default() -> WlOutputMode
fn default() -> WlOutputMode
Returns the “default value” for a type. Read more
Source§impl Hash for WlOutputMode
impl Hash for WlOutputMode
Source§impl IntoIterator for WlOutputMode
impl IntoIterator for WlOutputMode
Source§impl Not for WlOutputMode
impl Not for WlOutputMode
Source§impl Ord for WlOutputMode
impl Ord for WlOutputMode
Source§fn cmp(&self, other: &WlOutputMode) -> Ordering
fn cmp(&self, other: &WlOutputMode) -> 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 WlOutputMode
impl PartialEq for WlOutputMode
Source§impl PartialOrd for WlOutputMode
impl PartialOrd for WlOutputMode
Source§impl Sub for WlOutputMode
impl Sub for WlOutputMode
Source§impl SubAssign for WlOutputMode
impl SubAssign for WlOutputMode
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for WlOutputMode
impl Eq for WlOutputMode
impl StructuralPartialEq for WlOutputMode
Auto Trait Implementations§
impl Freeze for WlOutputMode
impl RefUnwindSafe for WlOutputMode
impl Send for WlOutputMode
impl Sync for WlOutputMode
impl Unpin for WlOutputMode
impl UnwindSafe for WlOutputMode
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