Struct linux_video_core::ChipFlag
source · #[repr(transparent)]pub struct ChipFlag { /* private fields */ }
Implementations§
source§impl ChipFlag
impl ChipFlag
pub const Readable: ChipFlag = _
pub const Writable: ChipFlag = _
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 BitAndAssign<ChipFlag> for ChipFlag
impl BitAndAssign<ChipFlag> for ChipFlag
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOrAssign<ChipFlag> for ChipFlag
impl BitOrAssign<ChipFlag> for ChipFlag
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign<ChipFlag> for ChipFlag
impl BitXorAssign<ChipFlag> for ChipFlag
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Ord for ChipFlag
impl Ord for ChipFlag
source§impl PartialEq<ChipFlag> for ChipFlag
impl PartialEq<ChipFlag> for ChipFlag
source§impl PartialOrd<ChipFlag> for ChipFlag
impl PartialOrd<ChipFlag> for ChipFlag
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 moreimpl Copy for ChipFlag
impl Eq for ChipFlag
impl StructuralEq for ChipFlag
impl StructuralPartialEq for ChipFlag
Auto Trait Implementations§
impl RefUnwindSafe for ChipFlag
impl Send for ChipFlag
impl Sync for ChipFlag
impl Unpin for ChipFlag
impl UnwindSafe for ChipFlag
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