hypershell_components/traits/
wrap_static_arg.rs

1use cgp::prelude::*;
2
3use crate::dsl::StaticArg;
4
5pub trait WrapStaticArg {
6    type Wrapped;
7}
8
9impl WrapStaticArg for Nil {
10    type Wrapped = Nil;
11}
12
13impl<Arg, Args> WrapStaticArg for Cons<Arg, Args>
14where
15    Args: WrapStaticArg,
16{
17    type Wrapped = Cons<StaticArg<Arg>, Args::Wrapped>;
18}