pub trait GetData<T>: Sized {
// Required method
fn try_data(self) -> Result<T, ()>;
}Expand description
Trait allowing to get real data based on Rust type.
This trait exist to circumvent E0119 that is disabling us to use TryInto. See https://github.com/rust-lang/rust/issues/50133
Required Methods§
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.