Function xcb::base::cast_event [] [src]

pub fn cast_event<'r, T>(event: &'r GenericEvent) -> &'r T

Casts the generic event to the right event. Assumes that the given event is really the correct type.