Trait melodium_core::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, ()>

Object Safety§

This trait is not object safe.

Implementors§