pub unsafe trait LeanRepr {
type Value;
}Expand description
A Rust type that names a Lean type whose values a Lean handle can hold.
§Safety
to_obj must return an owned object of the Lean type and from_obj must read one without
taking ownership; the type must be data (no closures, thunks, tasks or references), since
handles of it are shared between threads. Generated modules implement it for their types.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".