GetData

Trait GetData 

Source
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§

Source

fn try_data(self) -> Result<T, ()>

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.

Implementors§