pub trait IntoValue: Sized {
// Required methods
fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result;
fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result;
// Provided methods
fn into_value(self) -> WitValue { ... }
fn get_type() -> WitType { ... }
}
Expand description
Specific trait to convert a type into a pair of WitValue
and WitType
.
Required Methods§
fn add_to_builder<T: NodeBuilder>(self, builder: T) -> T::Result
fn add_to_type_builder<T: TypeNodeBuilder>(builder: T) -> T::Result
Provided 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.