Trait TryFromData

Source
pub trait TryFromData<Ty>: FromData<Ty> {
    // Required method
    fn try_from_data(val: Ty) -> Result<Self>
       where Self: Sized;
}

Required Methods§

Source

fn try_from_data(val: Ty) -> Result<Self>
where Self: Sized,

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§