pub struct ResetFlags { /* private fields */ }
Expand description
Experimental flags, best to ignore.
Implementations§
Source§impl ResetFlags
impl ResetFlags
pub const DEFORMABLE_WORLD: ResetFlags
pub const DISCRETE_DYNAMICS_WORLD: ResetFlags
pub const SIMPLE_BROADPHASE: ResetFlags
Sourcepub const fn empty() -> ResetFlags
pub const fn empty() -> ResetFlags
Returns an empty set of flags
Sourcepub const fn all() -> ResetFlags
pub const fn all() -> ResetFlags
Returns the set containing all flags.
Sourcepub fn from_bits(bits: i32) -> Option<ResetFlags>
pub fn from_bits(bits: i32) -> Option<ResetFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: i32) -> ResetFlags
pub const fn from_bits_truncate(bits: i32) -> ResetFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: i32) -> ResetFlags
pub const unsafe fn from_bits_unchecked(bits: i32) -> ResetFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: ResetFlags) -> bool
pub const fn intersects(&self, other: ResetFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Sourcepub const fn contains(&self, other: ResetFlags) -> bool
pub const fn contains(&self, other: ResetFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Sourcepub fn insert(&mut self, other: ResetFlags)
pub fn insert(&mut self, other: ResetFlags)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: ResetFlags)
pub fn remove(&mut self, other: ResetFlags)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: ResetFlags)
pub fn toggle(&mut self, other: ResetFlags)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: ResetFlags, value: bool)
pub fn set(&mut self, other: ResetFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for ResetFlags
impl Binary for ResetFlags
Source§impl BitAnd for ResetFlags
impl BitAnd for ResetFlags
Source§fn bitand(self, other: ResetFlags) -> ResetFlags
fn bitand(self, other: ResetFlags) -> ResetFlags
Returns the intersection between the two sets of flags.
Source§type Output = ResetFlags
type Output = ResetFlags
&
operator.Source§impl BitAndAssign for ResetFlags
impl BitAndAssign for ResetFlags
Source§fn bitand_assign(&mut self, other: ResetFlags)
fn bitand_assign(&mut self, other: ResetFlags)
Disables all flags disabled in the set.
Source§impl BitOr for ResetFlags
impl BitOr for ResetFlags
Source§fn bitor(self, other: ResetFlags) -> ResetFlags
fn bitor(self, other: ResetFlags) -> ResetFlags
Returns the union of the two sets of flags.
Source§type Output = ResetFlags
type Output = ResetFlags
|
operator.Source§impl BitOrAssign for ResetFlags
impl BitOrAssign for ResetFlags
Source§fn bitor_assign(&mut self, other: ResetFlags)
fn bitor_assign(&mut self, other: ResetFlags)
Adds the set of flags.
Source§impl BitXor for ResetFlags
impl BitXor for ResetFlags
Source§fn bitxor(self, other: ResetFlags) -> ResetFlags
fn bitxor(self, other: ResetFlags) -> ResetFlags
Returns the left flags, but with all the right flags toggled.
Source§type Output = ResetFlags
type Output = ResetFlags
^
operator.Source§impl BitXorAssign for ResetFlags
impl BitXorAssign for ResetFlags
Source§fn bitxor_assign(&mut self, other: ResetFlags)
fn bitxor_assign(&mut self, other: ResetFlags)
Toggles the set of flags.
Source§impl Clone for ResetFlags
impl Clone for ResetFlags
Source§fn clone(&self) -> ResetFlags
fn clone(&self) -> ResetFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ResetFlags
impl Debug for ResetFlags
Source§impl Extend<ResetFlags> for ResetFlags
impl Extend<ResetFlags> for ResetFlags
Source§fn extend<T: IntoIterator<Item = ResetFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ResetFlags>>(&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<ResetFlags> for ResetFlags
impl FromIterator<ResetFlags> for ResetFlags
Source§fn from_iter<T: IntoIterator<Item = ResetFlags>>(iterator: T) -> ResetFlags
fn from_iter<T: IntoIterator<Item = ResetFlags>>(iterator: T) -> ResetFlags
Source§impl Hash for ResetFlags
impl Hash for ResetFlags
Source§impl LowerHex for ResetFlags
impl LowerHex for ResetFlags
Source§impl Not for ResetFlags
impl Not for ResetFlags
Source§fn not(self) -> ResetFlags
fn not(self) -> ResetFlags
Returns the complement of this set of flags.
Source§type Output = ResetFlags
type Output = ResetFlags
!
operator.Source§impl Octal for ResetFlags
impl Octal for ResetFlags
Source§impl Ord for ResetFlags
impl Ord for ResetFlags
Source§fn cmp(&self, other: &ResetFlags) -> Ordering
fn cmp(&self, other: &ResetFlags) -> 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 ResetFlags
impl PartialEq for ResetFlags
Source§impl PartialOrd for ResetFlags
impl PartialOrd for ResetFlags
Source§impl Sub for ResetFlags
impl Sub for ResetFlags
Source§fn sub(self, other: ResetFlags) -> ResetFlags
fn sub(self, other: ResetFlags) -> ResetFlags
Returns the set difference of the two sets of flags.
Source§type Output = ResetFlags
type Output = ResetFlags
-
operator.Source§impl SubAssign for ResetFlags
impl SubAssign for ResetFlags
Source§fn sub_assign(&mut self, other: ResetFlags)
fn sub_assign(&mut self, other: ResetFlags)
Disables all flags enabled in the set.
Source§impl UpperHex for ResetFlags
impl UpperHex for ResetFlags
impl Copy for ResetFlags
impl Eq for ResetFlags
impl StructuralPartialEq for ResetFlags
Auto Trait Implementations§
impl Freeze for ResetFlags
impl RefUnwindSafe for ResetFlags
impl Send for ResetFlags
impl Sync for ResetFlags
impl Unpin for ResetFlags
impl UnwindSafe for ResetFlags
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> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.