[][src]Macro cast_trait_object::create_dyn_cast_config

macro_rules! create_dyn_cast_config {
    (
        $(#[$attr:meta])*
        $config_vis:vis
        $config_name:ident
        // Any generic arguments for the config type:
        <  $($lifetime:lifetime),* $($generics:ident),* $(,)?  >
        // Where clause:
        $(where { $($where:tt)* })?
        =
        // Path to source trait:
        $source_trait:path
        =>
        // Path to target trait:
        $target_trait:path
    ) => { ... };
    ($(#[$attr:meta])* $config_vis:vis $config_name:ident = $source_trait:path => $target_trait:path) => { ... };
}

Create a new config type that implements DynCastConfig. If you need more control over the generated config type then use the impl_dyn_cast_config macro instead.