macro_rules! dep_obj {
    (
        impl $($token:tt)+
    ) => { ... };
}
Expand description

Specifies dependency objects list and accessing methods.

Accepts input in the following form:

$(
    impl $Id:ty
|
    impl <$generics> $Id:ty $(where $where_clause)?
)
{
    $(
        fn<$DepObjKey:ty>(
            self as $this:ident,
            $state_part:ident : $StatePart:ty
        ) -> $(optional)? $(dyn ($tr:path) | ($ty:ty)) {
            if mut { $field_mut:expr } else { $field:expr }
        }
    )*
}