pub struct FrameClockPhase { /* private fields */ }
Implementations§
Source§impl FrameClockPhase
impl FrameClockPhase
pub const NONE: FrameClockPhase
pub const FLUSH_EVENTS: FrameClockPhase
pub const BEFORE_PAINT: FrameClockPhase
pub const UPDATE: FrameClockPhase
pub const LAYOUT: FrameClockPhase
pub const PAINT: FrameClockPhase
pub const RESUME_EVENTS: FrameClockPhase
pub const AFTER_PAINT: FrameClockPhase
Sourcepub const fn empty() -> FrameClockPhase
pub const fn empty() -> FrameClockPhase
Returns an empty set of flags
Sourcepub const fn all() -> FrameClockPhase
pub const fn all() -> FrameClockPhase
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u32) -> Option<FrameClockPhase>
pub fn from_bits(bits: u32) -> Option<FrameClockPhase>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u32) -> FrameClockPhase
pub const fn from_bits_truncate(bits: u32) -> FrameClockPhase
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> FrameClockPhase
pub const unsafe fn from_bits_unchecked(bits: u32) -> FrameClockPhase
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: FrameClockPhase) -> bool
pub const fn intersects(&self, other: FrameClockPhase) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: FrameClockPhase) -> bool
pub const fn contains(&self, other: FrameClockPhase) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: FrameClockPhase)
pub fn insert(&mut self, other: FrameClockPhase)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: FrameClockPhase)
pub fn remove(&mut self, other: FrameClockPhase)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: FrameClockPhase)
pub fn toggle(&mut self, other: FrameClockPhase)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: FrameClockPhase, value: bool)
pub fn set(&mut self, other: FrameClockPhase, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for FrameClockPhase
impl Binary for FrameClockPhase
Source§impl BitAnd for FrameClockPhase
impl BitAnd for FrameClockPhase
Source§fn bitand(self, other: FrameClockPhase) -> FrameClockPhase
fn bitand(self, other: FrameClockPhase) -> FrameClockPhase
Returns the intersection between the two sets of flags.
Source§type Output = FrameClockPhase
type Output = FrameClockPhase
&
operator.Source§impl BitAndAssign for FrameClockPhase
impl BitAndAssign for FrameClockPhase
Source§fn bitand_assign(&mut self, other: FrameClockPhase)
fn bitand_assign(&mut self, other: FrameClockPhase)
Disables all flags disabled in the set.
Source§impl BitOr for FrameClockPhase
impl BitOr for FrameClockPhase
Source§fn bitor(self, other: FrameClockPhase) -> FrameClockPhase
fn bitor(self, other: FrameClockPhase) -> FrameClockPhase
Returns the union of the two sets of flags.
Source§type Output = FrameClockPhase
type Output = FrameClockPhase
|
operator.Source§impl BitOrAssign for FrameClockPhase
impl BitOrAssign for FrameClockPhase
Source§fn bitor_assign(&mut self, other: FrameClockPhase)
fn bitor_assign(&mut self, other: FrameClockPhase)
Adds the set of flags.
Source§impl BitXor for FrameClockPhase
impl BitXor for FrameClockPhase
Source§fn bitxor(self, other: FrameClockPhase) -> FrameClockPhase
fn bitxor(self, other: FrameClockPhase) -> FrameClockPhase
Returns the left flags, but with all the right flags toggled.
Source§type Output = FrameClockPhase
type Output = FrameClockPhase
^
operator.Source§impl BitXorAssign for FrameClockPhase
impl BitXorAssign for FrameClockPhase
Source§fn bitxor_assign(&mut self, other: FrameClockPhase)
fn bitxor_assign(&mut self, other: FrameClockPhase)
Toggles the set of flags.
Source§impl Clone for FrameClockPhase
impl Clone for FrameClockPhase
Source§fn clone(&self) -> FrameClockPhase
fn clone(&self) -> FrameClockPhase
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FrameClockPhase
impl Debug for FrameClockPhase
Source§impl Extend<FrameClockPhase> for FrameClockPhase
impl Extend<FrameClockPhase> for FrameClockPhase
Source§fn extend<T: IntoIterator<Item = FrameClockPhase>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FrameClockPhase>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Source§impl FromIterator<FrameClockPhase> for FrameClockPhase
impl FromIterator<FrameClockPhase> for FrameClockPhase
Source§fn from_iter<T: IntoIterator<Item = FrameClockPhase>>(
iterator: T,
) -> FrameClockPhase
fn from_iter<T: IntoIterator<Item = FrameClockPhase>>( iterator: T, ) -> FrameClockPhase
Source§impl<'a> FromValue<'a> for FrameClockPhase
impl<'a> FromValue<'a> for FrameClockPhase
unsafe fn from_value(value: &Value) -> Self
Source§impl<'a> FromValueOptional<'a> for FrameClockPhase
impl<'a> FromValueOptional<'a> for FrameClockPhase
unsafe fn from_value_optional(value: &Value) -> Option<Self>
Source§impl Hash for FrameClockPhase
impl Hash for FrameClockPhase
Source§impl LowerHex for FrameClockPhase
impl LowerHex for FrameClockPhase
Source§impl Not for FrameClockPhase
impl Not for FrameClockPhase
Source§fn not(self) -> FrameClockPhase
fn not(self) -> FrameClockPhase
Returns the complement of this set of flags.
Source§type Output = FrameClockPhase
type Output = FrameClockPhase
!
operator.Source§impl Octal for FrameClockPhase
impl Octal for FrameClockPhase
Source§impl Ord for FrameClockPhase
impl Ord for FrameClockPhase
Source§fn cmp(&self, other: &FrameClockPhase) -> Ordering
fn cmp(&self, other: &FrameClockPhase) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FrameClockPhase
impl PartialEq for FrameClockPhase
Source§impl PartialOrd for FrameClockPhase
impl PartialOrd for FrameClockPhase
Source§impl StaticType for FrameClockPhase
impl StaticType for FrameClockPhase
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl Sub for FrameClockPhase
impl Sub for FrameClockPhase
Source§fn sub(self, other: FrameClockPhase) -> FrameClockPhase
fn sub(self, other: FrameClockPhase) -> FrameClockPhase
Returns the set difference of the two sets of flags.
Source§type Output = FrameClockPhase
type Output = FrameClockPhase
-
operator.Source§impl SubAssign for FrameClockPhase
impl SubAssign for FrameClockPhase
Source§fn sub_assign(&mut self, other: FrameClockPhase)
fn sub_assign(&mut self, other: FrameClockPhase)
Disables all flags enabled in the set.
Source§impl UpperHex for FrameClockPhase
impl UpperHex for FrameClockPhase
impl Copy for FrameClockPhase
impl Eq for FrameClockPhase
impl StructuralPartialEq for FrameClockPhase
Auto Trait Implementations§
impl Freeze for FrameClockPhase
impl RefUnwindSafe for FrameClockPhase
impl Send for FrameClockPhase
impl Sync for FrameClockPhase
impl Unpin for FrameClockPhase
impl UnwindSafe for FrameClockPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.