pub(crate) const fn panic_divide_by_0() -> ! {
panic!("divisor must not be 0")
}
pub(crate) const fn panic_allocate_too_much() -> ! {
panic!("try to allocate too much memory")
}
pub(crate) const fn panic_out_of_memory() -> ! {
panic!("out of memory")
}
pub(crate) const fn panic_negative_ubig() -> ! {
panic!("UBig result must not be negative")
}
pub(crate) const fn panic_different_rings() -> ! {
panic!("Modulo values from different rings")
}
pub(crate) fn panic_invalid_radix(radix: u32) -> ! {
panic!("invalid radix: {}, only radix 2-36 are supported", radix);
}
pub(crate) fn panic_invalid_log_oprand() -> ! {
panic!("logarithm is not defined for 0, base 0 and base 1!");
}
pub(crate) fn panic_root_zeroth() -> ! {
panic!("finding 0th root is not allowed!")
}
pub(crate) fn panic_root_negative() -> ! {
panic!("the root is a complex number!")
}
pub(crate) fn panic_divide_by_invalid_modulo() -> ! {
panic!("Division by a non-invertible Modulo")
}