pub struct SolidMaterial {
pub youngs_modulus_pa: f64,
pub poisson_ratio: f64,
}Fields§
§youngs_modulus_pa: f64§poisson_ratio: f64Implementations§
Source§impl SolidMaterial
impl SolidMaterial
pub fn validate(self) -> Result<(), SolidMaterialError>
pub fn lame_lambda_pa(self) -> Result<f64, SolidMaterialError>
pub fn shear_modulus_pa(self) -> Result<f64, SolidMaterialError>
Trait Implementations§
Source§impl Clone for SolidMaterial
impl Clone for SolidMaterial
Source§fn clone(&self) -> SolidMaterial
fn clone(&self) -> SolidMaterial
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 SolidMaterial
Source§impl Debug for SolidMaterial
impl Debug for SolidMaterial
Source§impl<'de> Deserialize<'de> for SolidMaterial
impl<'de> Deserialize<'de> for SolidMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SolidMaterial
impl PartialEq for SolidMaterial
Source§impl Serialize for SolidMaterial
impl Serialize for SolidMaterial
impl StructuralPartialEq for SolidMaterial
Auto Trait Implementations§
impl Freeze for SolidMaterial
impl RefUnwindSafe for SolidMaterial
impl Send for SolidMaterial
impl Sync for SolidMaterial
impl Unpin for SolidMaterial
impl UnsafeUnpin for SolidMaterial
impl UnwindSafe for SolidMaterial
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