macro_rules! rassert {
($cond:expr $(,)?) => { ... };
($cond:expr, $fmt:literal) => { ... };
($cond:expr, $fmt:literal, $($arg:tt)*) => { ... };
}
Expand description
assert!
but returns a Result<(), String>
instead of panicking.
macro_rules! rassert {
($cond:expr $(,)?) => { ... };
($cond:expr, $fmt:literal) => { ... };
($cond:expr, $fmt:literal, $($arg:tt)*) => { ... };
}
assert!
but returns a Result<(), String>
instead of panicking.