pub trait MetaDistribution {
type CopulaType: Copula;
// Required methods
fn copula(&self) -> &Self::CopulaType;
fn copula_mut(&mut self) -> &mut Self::CopulaType;
}Expand description
Trait for meta-distributions that can use any copula.
This allows for constructions like meta-elliptical distributions where the dependence structure is specified by a copula.
Required Associated Types§
Sourcetype CopulaType: Copula
type CopulaType: Copula
Type of the underlying copula
Required Methods§
Sourcefn copula(&self) -> &Self::CopulaType
fn copula(&self) -> &Self::CopulaType
Get reference to the underlying copula
Sourcefn copula_mut(&mut self) -> &mut Self::CopulaType
fn copula_mut(&mut self) -> &mut Self::CopulaType
Get mutable reference to the underlying copula
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".