swamp_script_eval::value

Trait SwampExport

Source
pub trait SwampExport {
    // Required methods
    fn generate_swamp_definition() -> String;
    fn to_swamp_value(&self) -> Value;
    fn from_swamp_value(value: &Value) -> Result<Self, String>
       where Self: Sized;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl SwampExport for i32

Source§

impl SwampExport for Fp

Implementors§