Struct sparkl2d_core::dynamics::ParticleStatus
source · #[repr(C)]pub struct ParticleStatus {
pub failed: bool,
pub is_static: bool,
pub kinematic_vel_enabled: bool,
pub kinematic_vel: Vector<Real>,
pub model_index: usize,
}
Fields§
§failed: bool
§is_static: bool
§kinematic_vel_enabled: bool
§kinematic_vel: Vector<Real>
§model_index: usize
Trait Implementations§
source§impl Clone for ParticleStatus
impl Clone for ParticleStatus
source§fn clone(&self) -> ParticleStatus
fn clone(&self) -> ParticleStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ParticleStatus
impl Debug for ParticleStatus
source§impl Default for ParticleStatus
impl Default for ParticleStatus
source§impl PartialEq for ParticleStatus
impl PartialEq for ParticleStatus
source§fn eq(&self, other: &ParticleStatus) -> bool
fn eq(&self, other: &ParticleStatus) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ParticleStatus
impl StructuralPartialEq for ParticleStatus
Auto Trait Implementations§
impl Freeze for ParticleStatus
impl RefUnwindSafe for ParticleStatus
impl Send for ParticleStatus
impl Sync for ParticleStatus
impl Unpin for ParticleStatus
impl UnwindSafe for ParticleStatus
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.