Struct rapier3d::dynamics::RigidBodyChanges [−][src]
pub struct RigidBodyChanges { /* fields omitted */ }
Expand description
Flags describing how the rigid-body has been modified by the user.
Implementations
impl RigidBodyChanges
[src]
impl RigidBodyChanges
[src]pub const MODIFIED: RigidBodyChanges
[src]
pub const MODIFIED: RigidBodyChanges
[src]Flag indicating that any component of this rigid-body has been modified.
pub const POSITION: RigidBodyChanges
[src]
pub const POSITION: RigidBodyChanges
[src]Flag indicating that the RigidBodyPosition
component of this rigid-body has been modified.
pub const SLEEP: RigidBodyChanges
[src]
pub const SLEEP: RigidBodyChanges
[src]Flag indicating that the RigidBodyActivation
component of this rigid-body has been modified.
pub const COLLIDERS: RigidBodyChanges
[src]
pub const COLLIDERS: RigidBodyChanges
[src]Flag indicating that the RigidBodyColliders
component of this rigid-body has been modified.
pub const TYPE: RigidBodyChanges
[src]
pub const TYPE: RigidBodyChanges
[src]Flag indicating that the RigidBodyType
component of this rigid-body has been modified.
pub const fn empty() -> RigidBodyChanges
[src]
pub const fn empty() -> RigidBodyChanges
[src]Returns an empty set of flags
pub const fn all() -> RigidBodyChanges
[src]
pub const fn all() -> RigidBodyChanges
[src]Returns the set containing all flags.
pub fn from_bits(bits: u32) -> Option<RigidBodyChanges>
[src]
pub fn from_bits(bits: u32) -> Option<RigidBodyChanges>
[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u32) -> RigidBodyChanges
[src]
pub const fn from_bits_truncate(bits: u32) -> RigidBodyChanges
[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u32) -> RigidBodyChanges
[src]
pub const unsafe fn from_bits_unchecked(bits: u32) -> RigidBodyChanges
[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: RigidBodyChanges) -> bool
[src]
pub const fn intersects(&self, other: RigidBodyChanges) -> bool
[src]Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: RigidBodyChanges) -> bool
[src]
pub const fn contains(&self, other: RigidBodyChanges) -> bool
[src]Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: RigidBodyChanges)
[src]
pub fn insert(&mut self, other: RigidBodyChanges)
[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: RigidBodyChanges)
[src]
pub fn remove(&mut self, other: RigidBodyChanges)
[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: RigidBodyChanges)
[src]
pub fn toggle(&mut self, other: RigidBodyChanges)
[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: RigidBodyChanges, value: bool)
[src]
pub fn set(&mut self, other: RigidBodyChanges, value: bool)
[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for RigidBodyChanges
[src]
impl Binary for RigidBodyChanges
[src]impl BitAnd<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitAnd<RigidBodyChanges> for RigidBodyChanges
[src]fn bitand(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]
fn bitand(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]Returns the intersection between the two sets of flags.
type Output = RigidBodyChanges
type Output = RigidBodyChanges
The resulting type after applying the &
operator.
impl BitAndAssign<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitAndAssign<RigidBodyChanges> for RigidBodyChanges
[src]fn bitand_assign(&mut self, other: RigidBodyChanges)
[src]
fn bitand_assign(&mut self, other: RigidBodyChanges)
[src]Disables all flags disabled in the set.
impl BitOr<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitOr<RigidBodyChanges> for RigidBodyChanges
[src]fn bitor(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]
fn bitor(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]Returns the union of the two sets of flags.
type Output = RigidBodyChanges
type Output = RigidBodyChanges
The resulting type after applying the |
operator.
impl BitOrAssign<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitOrAssign<RigidBodyChanges> for RigidBodyChanges
[src]fn bitor_assign(&mut self, other: RigidBodyChanges)
[src]
fn bitor_assign(&mut self, other: RigidBodyChanges)
[src]Adds the set of flags.
impl BitXor<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitXor<RigidBodyChanges> for RigidBodyChanges
[src]fn bitxor(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]
fn bitxor(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]Returns the left flags, but with all the right flags toggled.
type Output = RigidBodyChanges
type Output = RigidBodyChanges
The resulting type after applying the ^
operator.
impl BitXorAssign<RigidBodyChanges> for RigidBodyChanges
[src]
impl BitXorAssign<RigidBodyChanges> for RigidBodyChanges
[src]fn bitxor_assign(&mut self, other: RigidBodyChanges)
[src]
fn bitxor_assign(&mut self, other: RigidBodyChanges)
[src]Toggles the set of flags.
impl Clone for RigidBodyChanges
[src]
impl Clone for RigidBodyChanges
[src]fn clone(&self) -> RigidBodyChanges
[src]
fn clone(&self) -> RigidBodyChanges
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl ComponentSet<RigidBodyChanges> for RigidBodySet
[src]
impl ComponentSet<RigidBodyChanges> for RigidBodySet
[src]impl ComponentSetMut<RigidBodyChanges> for RigidBodySet
[src]
impl ComponentSetMut<RigidBodyChanges> for RigidBodySet
[src]fn set_internal(&mut self, handle: Index, val: RigidBodyChanges)
[src]
fn set_internal(&mut self, handle: Index, val: RigidBodyChanges)
[src]Set the value of this element.
fn map_mut_internal<Result>(
&mut self,
handle: Index,
f: impl FnOnce(&mut RigidBodyChanges) -> Result
) -> Option<Result>
[src]
fn map_mut_internal<Result>(
&mut self,
handle: Index,
f: impl FnOnce(&mut RigidBodyChanges) -> Result
) -> Option<Result>
[src]Applies the given closure to the element associated to the given handle
. Read more
impl ComponentSetOption<RigidBodyChanges> for RigidBodySet
[src]
impl ComponentSetOption<RigidBodyChanges> for RigidBodySet
[src]fn get(&self, handle: Index) -> Option<&RigidBodyChanges>
[src]
fn get(&self, handle: Index) -> Option<&RigidBodyChanges>
[src]Get the element associated to the given handle
, if there is one.
impl Debug for RigidBodyChanges
[src]
impl Debug for RigidBodyChanges
[src]impl Default for RigidBodyChanges
[src]
impl Default for RigidBodyChanges
[src]impl Extend<RigidBodyChanges> for RigidBodyChanges
[src]
impl Extend<RigidBodyChanges> for RigidBodyChanges
[src]fn extend<T: IntoIterator<Item = RigidBodyChanges>>(&mut self, iterator: T)
[src]
fn extend<T: IntoIterator<Item = RigidBodyChanges>>(&mut self, iterator: T)
[src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)
[src]
fn extend_one(&mut self, item: A)
[src]extend_one
)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<RigidBodyChanges> for RigidBodyChanges
[src]
impl FromIterator<RigidBodyChanges> for RigidBodyChanges
[src]fn from_iter<T: IntoIterator<Item = RigidBodyChanges>>(
iterator: T
) -> RigidBodyChanges
[src]
fn from_iter<T: IntoIterator<Item = RigidBodyChanges>>(
iterator: T
) -> RigidBodyChanges
[src]Creates a value from an iterator. Read more
impl Hash for RigidBodyChanges
[src]
impl Hash for RigidBodyChanges
[src]impl LowerHex for RigidBodyChanges
[src]
impl LowerHex for RigidBodyChanges
[src]impl Not for RigidBodyChanges
[src]
impl Not for RigidBodyChanges
[src]fn not(self) -> RigidBodyChanges
[src]
fn not(self) -> RigidBodyChanges
[src]Returns the complement of this set of flags.
type Output = RigidBodyChanges
type Output = RigidBodyChanges
The resulting type after applying the !
operator.
impl Octal for RigidBodyChanges
[src]
impl Octal for RigidBodyChanges
[src]impl Ord for RigidBodyChanges
[src]
impl Ord for RigidBodyChanges
[src]impl PartialEq<RigidBodyChanges> for RigidBodyChanges
[src]
impl PartialEq<RigidBodyChanges> for RigidBodyChanges
[src]fn eq(&self, other: &RigidBodyChanges) -> bool
[src]
fn eq(&self, other: &RigidBodyChanges) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &RigidBodyChanges) -> bool
[src]
fn ne(&self, other: &RigidBodyChanges) -> bool
[src]This method tests for !=
.
impl PartialOrd<RigidBodyChanges> for RigidBodyChanges
[src]
impl PartialOrd<RigidBodyChanges> for RigidBodyChanges
[src]fn partial_cmp(&self, other: &RigidBodyChanges) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &RigidBodyChanges) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Sub<RigidBodyChanges> for RigidBodyChanges
[src]
impl Sub<RigidBodyChanges> for RigidBodyChanges
[src]fn sub(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]
fn sub(self, other: RigidBodyChanges) -> RigidBodyChanges
[src]Returns the set difference of the two sets of flags.
type Output = RigidBodyChanges
type Output = RigidBodyChanges
The resulting type after applying the -
operator.
impl SubAssign<RigidBodyChanges> for RigidBodyChanges
[src]
impl SubAssign<RigidBodyChanges> for RigidBodyChanges
[src]fn sub_assign(&mut self, other: RigidBodyChanges)
[src]
fn sub_assign(&mut self, other: RigidBodyChanges)
[src]Disables all flags enabled in the set.
impl UpperHex for RigidBodyChanges
[src]
impl UpperHex for RigidBodyChanges
[src]impl Copy for RigidBodyChanges
[src]
impl Eq for RigidBodyChanges
[src]
impl StructuralEq for RigidBodyChanges
[src]
impl StructuralPartialEq for RigidBodyChanges
[src]
Auto Trait Implementations
impl RefUnwindSafe for RigidBodyChanges
impl Send for RigidBodyChanges
impl Sync for RigidBodyChanges
impl Unpin for RigidBodyChanges
impl UnwindSafe for RigidBodyChanges
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
T: Any,
[src]pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn to_subset(&self) -> Option<SS>
[src]The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
[src]
pub fn is_in_subset(&self) -> bool
[src]Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
[src]
pub fn from_subset(element: &SS) -> SP
[src]The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, Right> ClosedSub<Right> for T where
T: Sub<Right, Output = T> + SubAssign<Right>,
[src]
T: Sub<Right, Output = T> + SubAssign<Right>,