pub trait ProbeArgWrapper: Debug {
type CType: ProbeArgNativeTypeInfo + ProbeArgNativeType<Self::CType>;
// Required method
fn as_c_type(&self) -> Self::CType;
// Provided method
fn default_c_value() -> Self::CType { ... }
}Expand description
This trait, a companion to ProbeArgType
Required Associated Types§
type CType: ProbeArgNativeTypeInfo + ProbeArgNativeType<Self::CType>
Required Methods§
Provided Methods§
Sourcefn default_c_value() -> Self::CType
fn default_c_value() -> Self::CType
This is ugly but unavoidable. The underlying C type for an Opt
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.