pub trait Codec {
type Rust;
// Required methods
fn to_lean(value: &Self::Rust) -> Obj;
unsafe fn from_lean(object: Obj) -> Self::Rust;
}Expand description
A conversion between a Rust type and the Lean type the implementor stands for.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".