Skip to main content

TargetJson

Trait TargetJson 

Source
pub trait TargetJson: Sized {
    // Required methods
    fn to_json(&self) -> PyJson;
    fn from_json(value: PyJson) -> Result<Self, ProjectError>;
}
Expand description

.secs conversion of TargetCurve, whose arithmetic lives in secs-types so the engine can sample it without depending on file formats.

Required Methods§

Source

fn to_json(&self) -> PyJson

The .secs value SECS 2 writes for the curve.

Source

fn from_json(value: PyJson) -> Result<Self, ProjectError>

Reads the .secs value (an object with points, a bare array, or null).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§