#[derive(Fail, Debug)]
pub enum UIError {
#[fail(display = "unable to initialize the underlying system bindings: {}", error)]
FailedInitError { error: String },
#[fail(display = "cannot initialize multiple instances of the libui toolkit")]
MultipleInitError(),
#[fail(
display = "cannot remove index {} from tab group: there are only {} tabs in the group",
index,
n
)]
TabGroupIndexOutOfBounds { index: u64, n: u64 },
}