Function xcb::base::cast_error [] [src]

pub fn cast_error<'r, T>(error: &'r GenericError) -> &'r T

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