#[repr(C)]pub struct SoftElementRecord {
pub particles: [u32; 4],
pub rest: f32,
pub compliance: f32,
pub lambda: f32,
pub kind: u32,
pub yield_strain: f32,
pub break_strain: f32,
pub plastic_flow: f32,
}Fields§
§particles: [u32; 4]§rest: f32§compliance: f32§lambda: f32§kind: u32§yield_strain: f32§break_strain: f32§plastic_flow: f32Implementations§
Source§impl SoftElementRecord
impl SoftElementRecord
pub fn build(init: SoftElementInit) -> Self
pub const fn cleared() -> Self
pub fn state(&self) -> SoftElementState
Trait Implementations§
Source§impl Clone for SoftElementRecord
impl Clone for SoftElementRecord
Source§fn clone(&self) -> SoftElementRecord
fn clone(&self) -> SoftElementRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SoftElementRecord
Source§impl Debug for SoftElementRecord
impl Debug for SoftElementRecord
Source§impl PartialEq for SoftElementRecord
impl PartialEq for SoftElementRecord
impl Pod for SoftElementRecord
Source§impl StreamRecord for SoftElementRecord
impl StreamRecord for SoftElementRecord
impl StructuralPartialEq for SoftElementRecord
Auto Trait Implementations§
impl Freeze for SoftElementRecord
impl RefUnwindSafe for SoftElementRecord
impl Send for SoftElementRecord
impl Sync for SoftElementRecord
impl Unpin for SoftElementRecord
impl UnsafeUnpin for SoftElementRecord
impl UnwindSafe for SoftElementRecord
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.