Skip to main content

SerializableCopula

Trait SerializableCopula 

Source
pub trait SerializableCopula:
    Copula
    + Serialize
    + for<'de> Deserialize<'de> {
    // Provided methods
    fn to_json(&self) -> Result<String> { ... }
    fn from_json(json: &str) -> Result<Self>
       where Self: Sized { ... }
}
Available on crate feature serde only.
Expand description

Trait for serializable copulas.

This enables saving and loading copula models.

Provided Methods§

Source

fn to_json(&self) -> Result<String>

Serialize the copula to a JSON string.

Source

fn from_json(json: &str) -> Result<Self>
where Self: Sized,

Deserialize a copula from a JSON string.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§