Skip to main content

req

Macro req 

Source
macro_rules! req {
    (@tail $k:ty : $v:ty) => { ... };
    (@tail $k:ty : $v:ty | $($rest:tt)+) => { ... };
    () => { ... };
    ($($pairs:tt)+) => { ... };
}
Expand description

Type-level required service stack (Rust equivalent of R union requirements).

type R = effectful::req!(DbKey: DbClient | LogKey: Logger);