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§
Sourcefn construct(constitutive_model_1: C1, constitutive_model_2: C2) -> Self
fn construct(constitutive_model_1: C1, constitutive_model_2: C2) -> Self
Constructs and returns a new hybrid constitutive model.
Sourcefn constitutive_model_1(&self) -> &C1
fn constitutive_model_1(&self) -> &C1
Returns a reference to the first constitutive model.
Sourcefn constitutive_model_2(&self) -> &C2
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.