pub struct ColorComponentFlagBits(/* private fields */);Expand description
Implementations§
Source§impl ColorComponentFlagBits
impl ColorComponentFlagBits
Sourcepub const R: ColorComponentFlagBits
pub const R: ColorComponentFlagBits
Bit 0.
Sourcepub const G: ColorComponentFlagBits
pub const G: ColorComponentFlagBits
Bit 1.
Sourcepub const B: ColorComponentFlagBits
pub const B: ColorComponentFlagBits
Bit 2.
Sourcepub const A: ColorComponentFlagBits
pub const A: ColorComponentFlagBits
Bit 3.
pub const fn empty() -> ColorComponentFlagBits
pub const fn from_raw(value: u32) -> ColorComponentFlagBits
pub const fn as_raw(self) -> u32
pub const fn is_empty(self) -> bool
pub const fn contains(self, other: ColorComponentFlagBits) -> bool
pub const fn all() -> ColorComponentFlagBits
Trait Implementations§
Source§impl BitAnd for ColorComponentFlagBits
impl BitAnd for ColorComponentFlagBits
Source§type Output = ColorComponentFlagBits
type Output = ColorComponentFlagBits
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
fn bitand(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
Performs the
& operation. Read moreSource§impl BitAndAssign for ColorComponentFlagBits
impl BitAndAssign for ColorComponentFlagBits
Source§fn bitand_assign(&mut self, rhs: ColorComponentFlagBits)
fn bitand_assign(&mut self, rhs: ColorComponentFlagBits)
Performs the
&= operation. Read moreSource§impl BitOr for ColorComponentFlagBits
impl BitOr for ColorComponentFlagBits
Source§type Output = ColorComponentFlagBits
type Output = ColorComponentFlagBits
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
fn bitor(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
Performs the
| operation. Read moreSource§impl BitOrAssign for ColorComponentFlagBits
impl BitOrAssign for ColorComponentFlagBits
Source§fn bitor_assign(&mut self, rhs: ColorComponentFlagBits)
fn bitor_assign(&mut self, rhs: ColorComponentFlagBits)
Performs the
|= operation. Read moreSource§impl BitXor for ColorComponentFlagBits
impl BitXor for ColorComponentFlagBits
Source§type Output = ColorComponentFlagBits
type Output = ColorComponentFlagBits
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
fn bitxor(self, rhs: ColorComponentFlagBits) -> ColorComponentFlagBits
Performs the
^ operation. Read moreSource§impl BitXorAssign for ColorComponentFlagBits
impl BitXorAssign for ColorComponentFlagBits
Source§fn bitxor_assign(&mut self, rhs: ColorComponentFlagBits)
fn bitxor_assign(&mut self, rhs: ColorComponentFlagBits)
Performs the
^= operation. Read moreSource§impl Clone for ColorComponentFlagBits
impl Clone for ColorComponentFlagBits
Source§fn clone(&self) -> ColorComponentFlagBits
fn clone(&self) -> ColorComponentFlagBits
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 ColorComponentFlagBits
impl Debug for ColorComponentFlagBits
Source§impl Default for ColorComponentFlagBits
impl Default for ColorComponentFlagBits
Source§fn default() -> ColorComponentFlagBits
fn default() -> ColorComponentFlagBits
Returns the “default value” for a type. Read more
Source§impl Hash for ColorComponentFlagBits
impl Hash for ColorComponentFlagBits
Source§impl Not for ColorComponentFlagBits
impl Not for ColorComponentFlagBits
Source§type Output = ColorComponentFlagBits
type Output = ColorComponentFlagBits
The resulting type after applying the
! operator.Source§fn not(self) -> ColorComponentFlagBits
fn not(self) -> ColorComponentFlagBits
Performs the unary
! operation. Read moreSource§impl Ord for ColorComponentFlagBits
impl Ord for ColorComponentFlagBits
Source§fn cmp(&self, other: &ColorComponentFlagBits) -> Ordering
fn cmp(&self, other: &ColorComponentFlagBits) -> 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 ColorComponentFlagBits
impl PartialEq for ColorComponentFlagBits
Source§impl PartialOrd for ColorComponentFlagBits
impl PartialOrd for ColorComponentFlagBits
impl Copy for ColorComponentFlagBits
impl Eq for ColorComponentFlagBits
impl StructuralPartialEq for ColorComponentFlagBits
Auto Trait Implementations§
impl Freeze for ColorComponentFlagBits
impl RefUnwindSafe for ColorComponentFlagBits
impl Send for ColorComponentFlagBits
impl Sync for ColorComponentFlagBits
impl Unpin for ColorComponentFlagBits
impl UnsafeUnpin for ColorComponentFlagBits
impl UnwindSafe for ColorComponentFlagBits
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