atspi_commonMacro impl_from_interface_event_enum_for_event
source macro_rules! impl_from_interface_event_enum_for_event {
($outer_type:ty, $outer_variant:path) => { ... };
}
Expand description
Expands to a conversion given the enclosed event type and outer Event
variant.
eg
ⓘimpl_from_interface_event_enum_for_event!(ObjectEvents, Event::Object);
expands to:
ⓘimpl From<ObjectEvents> for Event {
fn from(event_variant: ObjectEvents) -> Event {
Event::Object(event_variant.into())
}
}