pub struct Type(/* private fields */);Implementations§
Source§impl Type
impl Type
pub const INPUT_MASK: Type
pub const OUTPUT_MASK: Type
pub const VIDEO_MASK: Type
pub const STILL_MASK: Type
pub const IMAGE_MASK: Type
Source§impl Type
impl Type
Sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> bool
Check if this object has all bits set that are also set in flag.
flag can be a single enum variant or a whole other mask.
Sourcepub fn intersects(self, flag: impl Into<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> bool
Check if this object has some bits set that are also set in flag.
flag can be a single enum variant or a whole other mask.
Trait Implementations§
Source§impl BitAndAssign<u8> for Type
impl BitAndAssign<u8> for Type
Source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&= operation. Read moreSource§impl BitAndAssign for Type
impl BitAndAssign for Type
Source§fn bitand_assign(&mut self, other: Type)
fn bitand_assign(&mut self, other: Type)
Performs the
&= operation. Read moreSource§impl BitOrAssign<u8> for Type
impl BitOrAssign<u8> for Type
Source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|= operation. Read moreSource§impl BitOrAssign for Type
impl BitOrAssign for Type
Source§fn bitor_assign(&mut self, other: Type)
fn bitor_assign(&mut self, other: Type)
Performs the
|= operation. Read moreSource§impl Ord for Type
impl Ord for Type
Source§impl PartialOrd for Type
impl PartialOrd for Type
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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