Struct gdk::FrameClockPhase
source · [−]pub struct FrameClockPhase { /* private fields */ }Implementations
sourceimpl 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
sourceimpl Binary for FrameClockPhase
impl Binary for FrameClockPhase
sourceimpl BitAnd<FrameClockPhase> for FrameClockPhase
impl BitAnd<FrameClockPhase> for FrameClockPhase
sourcefn bitand(self, other: FrameClockPhase) -> FrameClockPhase
fn bitand(self, other: FrameClockPhase) -> FrameClockPhase
Returns the intersection between the two sets of flags.
type Output = FrameClockPhase
type Output = FrameClockPhase
& operator.sourceimpl BitAndAssign<FrameClockPhase> for FrameClockPhase
impl BitAndAssign<FrameClockPhase> for FrameClockPhase
sourcefn bitand_assign(&mut self, other: FrameClockPhase)
fn bitand_assign(&mut self, other: FrameClockPhase)
Disables all flags disabled in the set.
sourceimpl BitOr<FrameClockPhase> for FrameClockPhase
impl BitOr<FrameClockPhase> for FrameClockPhase
sourcefn bitor(self, other: FrameClockPhase) -> FrameClockPhase
fn bitor(self, other: FrameClockPhase) -> FrameClockPhase
Returns the union of the two sets of flags.
type Output = FrameClockPhase
type Output = FrameClockPhase
| operator.sourceimpl BitOrAssign<FrameClockPhase> for FrameClockPhase
impl BitOrAssign<FrameClockPhase> for FrameClockPhase
sourcefn bitor_assign(&mut self, other: FrameClockPhase)
fn bitor_assign(&mut self, other: FrameClockPhase)
Adds the set of flags.
sourceimpl BitXor<FrameClockPhase> for FrameClockPhase
impl BitXor<FrameClockPhase> for FrameClockPhase
sourcefn bitxor(self, other: FrameClockPhase) -> FrameClockPhase
fn bitxor(self, other: FrameClockPhase) -> FrameClockPhase
Returns the left flags, but with all the right flags toggled.
type Output = FrameClockPhase
type Output = FrameClockPhase
^ operator.sourceimpl BitXorAssign<FrameClockPhase> for FrameClockPhase
impl BitXorAssign<FrameClockPhase> for FrameClockPhase
sourcefn bitxor_assign(&mut self, other: FrameClockPhase)
fn bitxor_assign(&mut self, other: FrameClockPhase)
Toggles the set of flags.
sourceimpl Clone for FrameClockPhase
impl Clone for FrameClockPhase
sourcefn clone(&self) -> FrameClockPhase
fn clone(&self) -> FrameClockPhase
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for FrameClockPhase
impl Debug for FrameClockPhase
sourceimpl Extend<FrameClockPhase> for FrameClockPhase
impl Extend<FrameClockPhase> for FrameClockPhase
sourcefn extend<T: IntoIterator<Item = FrameClockPhase>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = FrameClockPhase>>(&mut self, iterator: T)
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)sourceimpl FromIterator<FrameClockPhase> for FrameClockPhase
impl FromIterator<FrameClockPhase> for FrameClockPhase
sourcefn from_iter<T: IntoIterator<Item = FrameClockPhase>>(
iterator: T
) -> FrameClockPhase
fn from_iter<T: IntoIterator<Item = FrameClockPhase>>(
iterator: T
) -> FrameClockPhase
sourceimpl<'a> FromValue<'a> for FrameClockPhase
impl<'a> FromValue<'a> for FrameClockPhase
unsafe fn from_value(value: &Value) -> Self
sourceimpl<'a> FromValueOptional<'a> for FrameClockPhase
impl<'a> FromValueOptional<'a> for FrameClockPhase
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Hash for FrameClockPhase
impl Hash for FrameClockPhase
sourceimpl LowerHex for FrameClockPhase
impl LowerHex for FrameClockPhase
sourceimpl Not for FrameClockPhase
impl Not for FrameClockPhase
sourcefn not(self) -> FrameClockPhase
fn not(self) -> FrameClockPhase
Returns the complement of this set of flags.
type Output = FrameClockPhase
type Output = FrameClockPhase
! operator.sourceimpl Octal for FrameClockPhase
impl Octal for FrameClockPhase
sourceimpl Ord for FrameClockPhase
impl Ord for FrameClockPhase
sourcefn cmp(&self, other: &FrameClockPhase) -> Ordering
fn cmp(&self, other: &FrameClockPhase) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
sourceimpl PartialEq<FrameClockPhase> for FrameClockPhase
impl PartialEq<FrameClockPhase> for FrameClockPhase
sourcefn eq(&self, other: &FrameClockPhase) -> bool
fn eq(&self, other: &FrameClockPhase) -> bool
sourceimpl PartialOrd<FrameClockPhase> for FrameClockPhase
impl PartialOrd<FrameClockPhase> for FrameClockPhase
sourcefn partial_cmp(&self, other: &FrameClockPhase) -> Option<Ordering>
fn partial_cmp(&self, other: &FrameClockPhase) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FrameClockPhase
impl StaticType for FrameClockPhase
sourcefn static_type() -> Type
fn static_type() -> Type
Self.sourceimpl Sub<FrameClockPhase> for FrameClockPhase
impl Sub<FrameClockPhase> for FrameClockPhase
sourcefn sub(self, other: FrameClockPhase) -> FrameClockPhase
fn sub(self, other: FrameClockPhase) -> FrameClockPhase
Returns the set difference of the two sets of flags.
type Output = FrameClockPhase
type Output = FrameClockPhase
- operator.sourceimpl SubAssign<FrameClockPhase> for FrameClockPhase
impl SubAssign<FrameClockPhase> for FrameClockPhase
sourcefn sub_assign(&mut self, other: FrameClockPhase)
fn sub_assign(&mut self, other: FrameClockPhase)
Disables all flags enabled in the set.
sourceimpl UpperHex for FrameClockPhase
impl UpperHex for FrameClockPhase
impl Copy for FrameClockPhase
impl Eq for FrameClockPhase
impl StructuralEq for FrameClockPhase
impl StructuralPartialEq for FrameClockPhase
Auto Trait Implementations
impl RefUnwindSafe for FrameClockPhase
impl Send for FrameClockPhase
impl Sync for FrameClockPhase
impl Unpin for FrameClockPhase
impl UnwindSafe for FrameClockPhase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.