2019-10-11 11:19:44 +02:00
|
|
|
// rustfmt-hard_tabs: true
|
2024-07-19 18:25:11 -05:00
|
|
|
// rustfmt-style_edition: 2024
|
2019-10-11 11:19:44 +02:00
|
|
|
|
|
|
|
impl<
|
|
|
|
Target: FromEvent<A> + FromEvent<B>,
|
|
|
|
A: Widget2<Ctx = C>,
|
|
|
|
B: Widget2<Ctx = C>,
|
|
|
|
C: for<'a> CtxFamily<'a>,
|
|
|
|
> Widget2 for WidgetEventLifter<Target, A, B>
|
|
|
|
{
|
|
|
|
type Ctx = C;
|
|
|
|
type Event = Vec<Target>;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod foo {
|
|
|
|
impl<
|
|
|
|
Target: FromEvent<A> + FromEvent<B>,
|
|
|
|
A: Widget2<Ctx = C>,
|
|
|
|
B: Widget2<Ctx = C>,
|
|
|
|
C: for<'a> CtxFamily<'a>,
|
|
|
|
> Widget2 for WidgetEventLifter<Target, A, B>
|
|
|
|
{
|
|
|
|
type Ctx = C;
|
|
|
|
type Event = Vec<Target>;
|
|
|
|
}
|
|
|
|
}
|