Trait ConfigProxy

Source
pub trait ConfigProxy<T> {
    // Required method
    fn bind_proxy<C: Configuration>(value: &mut T, config: &C) -> Result<()>;
}
Expand description

Trait for types used as proxy for configuration to get around rust’s orphaning rules.

Required Methods§

Source

fn bind_proxy<C: Configuration>(value: &mut T, config: &C) -> Result<()>

Bind value based on mutable reference to original value.

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§

Source§

impl<P, T> ConfigProxy<T> for P
where P: Options + Into<T>, T: Clone + Into<P>,