pub trait FromValueAndType: Sized {
// Required method
fn from_extractor<'a, 'b>(
extractor: &'a impl WitValueExtractor<'a, 'b>,
) -> Result<Self, String>;
// Provided method
fn from_value_and_type(value_and_type: ValueAndType) -> Result<Self, String> { ... }
}
Required Methods§
fn from_extractor<'a, 'b>( extractor: &'a impl WitValueExtractor<'a, 'b>, ) -> Result<Self, String>
Provided Methods§
fn from_value_and_type(value_and_type: ValueAndType) -> Result<Self, String>
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.