pub trait CustomArgFromMeta<V: SynVersion>: Sized {
// Required method
fn try_from_meta(meta: V::ArgMeta) -> Result<Self, ErrorMsg>;
}
Expand description
A simplified version of the TryFromMeta
trait. Types that implement this must be wrapped in the CustomArg
struct.
Required Methods§
fn try_from_meta(meta: V::ArgMeta) -> Result<Self, ErrorMsg>
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.