Question : assert rust
Answered by : orion
// assert(expr[, message, ...])
// Panics
assert!(1 == 2);
// Panics with a message
assert!(1 == 2, "The rules of the universe arent broken!");
Source : | Last Update : Tue, 14 Sep 21
Answered by : orion
// assert(expr[, message, ...])
// Panics
assert!(1 == 2);
// Panics with a message
assert!(1 == 2, "The rules of the universe arent broken!");
Source : | Last Update : Tue, 14 Sep 21