conspire::constitutive::hybrid

Trait Hybrid

Source
pub trait Hybrid<'a, C1: Constitutive<'a>, C2: Constitutive<'a>> {
    // Required methods
    fn construct(constitutive_model_1: C1, constitutive_model_2: C2) -> Self;
    fn constitutive_model_1(&self) -> &C1;
    fn constitutive_model_2(&self) -> &C2;
}
Expand description

Required methods for hybrid constitutive models.

Required Methods§

Source

fn construct(constitutive_model_1: C1, constitutive_model_2: C2) -> Self

Constructs and returns a new hybrid constitutive model.

Source

fn constitutive_model_1(&self) -> &C1

Returns a reference to the first constitutive model.

Source

fn constitutive_model_2(&self) -> &C2

Returns a reference to the second constitutive model.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a, C1: Constitutive<'a>, C2: Constitutive<'a>> Hybrid<'a, C1, C2> for Additive<C1, C2>

Source§

impl<'a, C1: Constitutive<'a>, C2: Constitutive<'a>> Hybrid<'a, C1, C2> for Multiplicative<C1, C2>