pub unsafe trait Param {
// Required methods
fn kind() -> ParamKind;
fn as_ref(&self) -> ParamRef<'_>;
fn as_mut(&mut self) -> ParamMut<'_>;
}Expand description
Helper trait used in the implmenetation of derive macro PluginBase. DO NOT use directly.
§Safety
Implementers must verify that the parameter type returned by Param::kind, Param::as_ref and Param::as_mut agrees with each other.
Required Methods§
fn kind() -> ParamKind
fn as_ref(&self) -> ParamRef<'_>
fn as_mut(&mut self) -> ParamMut<'_>
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.