pub struct ElasticStressVelocityRecord {
pub velocity_m_s: [f32; 3],
pub material_ref: u32,
pub stress_xx_yy_zz_xy_yz_xz_pa: [f32; 6],
pub displacement_m: [f32; 3],
pub validity_bits: u32,
}Expand description
Exact 64-byte wire record for mode 0x0001 (elastic_stress_velocity_continuum).
Fields§
§velocity_m_s: [f32; 3]§material_ref: u32§stress_xx_yy_zz_xy_yz_xz_pa: [f32; 6]Full symmetric Cauchy stress tensor [xx, yy, zz, xy, yz, xz] in Pa (tensile-positive).
displacement_m: [f32; 3]§validity_bits: u32Implementations§
Source§impl ElasticStressVelocityRecord
impl ElasticStressVelocityRecord
pub fn stress(&self) -> CauchyStress6
pub fn validate(&self, externally_valid: bool) -> Result<(), ProfileError>
pub fn decode( bytes: &[u8], externally_valid: bool, ) -> Result<Self, ProfileError>
pub fn encode_into( &self, out: &mut [u8], externally_valid: bool, ) -> Result<(), ProfileError>
Trait Implementations§
Source§impl Clone for ElasticStressVelocityRecord
impl Clone for ElasticStressVelocityRecord
impl Copy for ElasticStressVelocityRecord
Source§impl Debug for ElasticStressVelocityRecord
impl Debug for ElasticStressVelocityRecord
Source§impl From<&ElasticStressVelocityRecord> for ElasticStressVelocityRecord
impl From<&ElasticStressVelocityRecord> for ElasticStressVelocityRecord
Source§fn from(r: &ElasticStressVelocityRecord) -> Self
fn from(r: &ElasticStressVelocityRecord) -> Self
Converts to this type from the input type.
Source§impl From<&ElasticStressVelocityRecord> for ElasticStressVelocityRecord
impl From<&ElasticStressVelocityRecord> for ElasticStressVelocityRecord
Source§fn from(r: &NumericalElasticRecord) -> Self
fn from(r: &NumericalElasticRecord) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ElasticStressVelocityRecord
Auto Trait Implementations§
impl Freeze for ElasticStressVelocityRecord
impl RefUnwindSafe for ElasticStressVelocityRecord
impl Send for ElasticStressVelocityRecord
impl Sync for ElasticStressVelocityRecord
impl Unpin for ElasticStressVelocityRecord
impl UnsafeUnpin for ElasticStressVelocityRecord
impl UnwindSafe for ElasticStressVelocityRecord
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more