pub trait Typed {
// Required method
fn ty() -> Type;
// Provided methods
fn implicit() -> impl IntoIterator<Item = (&'static str, Type)> { ... }
fn as_param() -> Type { ... }
fn as_return() -> Type { ... }
}Expand description
Add a lua Type representation to a rust type
Required Methods§
Provided Methods§
fn implicit() -> impl IntoIterator<Item = (&'static str, Type)>
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.