[][src]Macro cast_trait_object::impl_dyn_cast_config

macro_rules! impl_dyn_cast_config {
    (
        // Declare generic lifetimes and type parameters
        for<$($lifetime:lifetime),* $($generics:ident),* $(,)?>
        // Path to config type:
        $config_type:path
        // Where clause:
        $(where { $($where:tt)* })?
        =
        // Path to source trait:
        $source_trait:path
        =>
        // Path to target trait:
        $target_trait:path
    ) => { ... };
    ($config_type:ty = $source_trait:path => $target_trait:path) => { ... };
}

Implements DynCastConfig, DynCastConfigTargetTest and GetDynCastConfig for a config type.