pub trait ModuleParam: Sized + Copy {
// Required method
fn try_from_param_arg(arg: &BStr) -> Result<Self>;
}Expand description
Types that can be used for module parameters.
Required Methods§
Sourcefn try_from_param_arg(arg: &BStr) -> Result<Self>
fn try_from_param_arg(arg: &BStr) -> Result<Self>
Parse a parameter argument into the parameter value.
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.