Skip to main content

LeafConfigListCompatible

Trait LeafConfigListCompatible 

Source
pub trait LeafConfigListCompatible<Configurer, ConfigType>
where Configurer: ConfigureElements<ConfigType>,
{ // Required methods fn configure( data: &LeafConfigData, configurer: &mut OpenLeafElement<'_, Configurer, ConfigType>, ); fn configure_open( data: &LeafConfigData, configurer: OpenElement<'_, Configurer, ConfigType>, ); }
Expand description

Type-level dispatch for replaying LeafConfigData against open elements.

Implemented automatically for LeafConfigList chains. Custom implementations are rarely needed; build a LeafConfigList instead.

Required Methods§

Source

fn configure( data: &LeafConfigData, configurer: &mut OpenLeafElement<'_, Configurer, ConfigType>, )

Applies a leaf config blob to an open leaf element.

Source

fn configure_open( data: &LeafConfigData, configurer: OpenElement<'_, Configurer, ConfigType>, )

Applies a leaf config blob to an open element (consuming it).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Configurer, ConfigType> LeafConfigListCompatible<Configurer, ConfigType> for LeafConfigListNil
where Configurer: ConfigureElements<ConfigType>,

Source§

impl<Head, Tail, Configurer, ConfigType> LeafConfigListCompatible<Configurer, ConfigType> for LeafConfigList<Head, Tail>
where Configurer: ConfigureLeafElements<Head> + ConfigureElements<ConfigType>, Tail: LeafConfigListCompatible<Configurer, ConfigType>, Head: DeserializeOwned,