TryFromWithPH

Trait TryFromWithPH 

Source
pub trait TryFromWithPH<T, CTP: ConnectionToPlugin>: Sized {
    type Error;

    // Required method
    fn try_from_with_ph(
        value: T,
        ph: &PluginHandler<CTP>,
    ) -> Result<Self, Self::Error>;
}
Expand description

A trait trying to convert a type to another one, possibly with side-data stored in the PluginHandler if some information should not be directly accessible to the plugins.

Required Associated Types§

Required Methods§

Source

fn try_from_with_ph( value: T, ph: &PluginHandler<CTP>, ) -> Result<Self, Self::Error>

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§