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