panicmsg-0.1.1 has been yanked.
This crate provides reusable error messages ([PanicMsg]) for use with
panics, assertions (assert, assert_eq, assert_ne), and expect.
It also includes debug versions of each of these methods.
Simply declare a [PanicMsg]:
const EXAMPLE_PANIC: PanicMsg = new;
Then use it like this:
EXAMPLE_PANIC.panic;
// ...
EXAMPLE_PANIC.panic_if;
// ...
EXAMPLE_PANIC.assert;
// ...
EXAMPLE_PANIC.assert_eq;
// ...
EXAMPLE_PANIC.assert_ne;
// ...
EXAMPLE_PANIC.expect;
// ...
EXAMPLE_PANIC.expect;
// ...
EXAMPLE_PANIC.debug_panic;
// ...
EXAMPLE_PANIC.debug_panic_if;
// ...
EXAMPLE_PANIC.debug_assert;
// ...
EXAMPLE_PANIC.debug_assert_eq;
// ...
EXAMPLE_PANIC.debug_assert_ne;
// ...
EXAMPLE_PANIC.debug_expect;
// ...
EXAMPLE_PANIC.debug_expect;