Struct linux_video_core::PixFmtFlag
source · #[repr(transparent)]pub struct PixFmtFlag { /* private fields */ }
Implementations§
source§impl PixFmtFlag
impl PixFmtFlag
pub const PremulAlpha: PixFmtFlag = _
pub const SetCsc: PixFmtFlag = _
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
self intersects one of the other
(self & other) != 0 || other == 0
Trait Implementations§
source§impl Binary for PixFmtFlag
impl Binary for PixFmtFlag
source§impl BitAnd<PixFmtFlag> for PixFmtFlag
impl BitAnd<PixFmtFlag> for PixFmtFlag
source§impl BitAndAssign<PixFmtFlag> for PixFmtFlag
impl BitAndAssign<PixFmtFlag> for PixFmtFlag
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<PixFmtFlag> for PixFmtFlag
impl BitOr<PixFmtFlag> for PixFmtFlag
source§impl BitOrAssign<PixFmtFlag> for PixFmtFlag
impl BitOrAssign<PixFmtFlag> for PixFmtFlag
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<PixFmtFlag> for PixFmtFlag
impl BitXor<PixFmtFlag> for PixFmtFlag
source§impl BitXorAssign<PixFmtFlag> for PixFmtFlag
impl BitXorAssign<PixFmtFlag> for PixFmtFlag
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for PixFmtFlag
impl Clone for PixFmtFlag
source§fn clone(&self) -> PixFmtFlag
fn clone(&self) -> PixFmtFlag
Returns a copy 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 PixFmtFlag
impl Debug for PixFmtFlag
source§impl Display for PixFmtFlag
impl Display for PixFmtFlag
source§impl From<PixFmtFlag> for u8
impl From<PixFmtFlag> for u8
source§fn from(val: PixFmtFlag) -> u8
fn from(val: PixFmtFlag) -> u8
Converts to this type from the input type.
source§impl From<u8> for PixFmtFlag
impl From<u8> for PixFmtFlag
source§impl Hash for PixFmtFlag
impl Hash for PixFmtFlag
source§impl LowerHex for PixFmtFlag
impl LowerHex for PixFmtFlag
source§impl Not for PixFmtFlag
impl Not for PixFmtFlag
source§impl Octal for PixFmtFlag
impl Octal for PixFmtFlag
source§impl Ord for PixFmtFlag
impl Ord for PixFmtFlag
source§fn cmp(&self, other: &PixFmtFlag) -> Ordering
fn cmp(&self, other: &PixFmtFlag) -> 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<PixFmtFlag> for PixFmtFlag
impl PartialEq<PixFmtFlag> for PixFmtFlag
source§fn eq(&self, other: &PixFmtFlag) -> bool
fn eq(&self, other: &PixFmtFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<u8> for PixFmtFlag
impl PartialEq<u8> for PixFmtFlag
source§impl PartialOrd<PixFmtFlag> for PixFmtFlag
impl PartialOrd<PixFmtFlag> for PixFmtFlag
source§fn partial_cmp(&self, other: &PixFmtFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &PixFmtFlag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl UpperHex for PixFmtFlag
impl UpperHex for PixFmtFlag
impl Copy for PixFmtFlag
impl Eq for PixFmtFlag
impl StructuralEq for PixFmtFlag
impl StructuralPartialEq for PixFmtFlag
Auto Trait Implementations§
impl RefUnwindSafe for PixFmtFlag
impl Send for PixFmtFlag
impl Sync for PixFmtFlag
impl Unpin for PixFmtFlag
impl UnwindSafe for PixFmtFlag
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