pub struct Type(/* private fields */);
Implementations§
Source§impl Type
impl Type
pub const INPUT_MASK: Self
pub const OUTPUT_MASK: Self
pub const VIDEO_MASK: Self
pub const STILL_MASK: Self
pub const IMAGE_MASK: Self
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<Type> for u8
impl BitAndAssign<Type> for u8
Source§fn bitand_assign(&mut self, other: Type)
fn bitand_assign(&mut self, other: Type)
Performs the
&=
operation. Read moreSource§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<Type> for u8
impl BitOrAssign<Type> for u8
Source§fn bitor_assign(&mut self, other: Type)
fn bitor_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<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§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