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

Specifies dependency objects list and accessing methods.

Accepts input in the following form:

$(
    $Id:ty
|
    <$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 }
        }
    |
        fn<$DepObjKey:tt>() -> $(optional)? $(($ty:ty) | dyn($tr:path)) {
            $StatePart:ty $({ . $state_part_field:tt })? | . $component_field:tt
        }

    )*
}