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§
Sourcefn from_json(value: PyJson) -> Result<Self, ProjectError>
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".