Assert Rust

[Solved] Assert Rust | Rust - Code Explorer | yomemimo.com
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

Answers related to assert rust

Code Explorer Popular Question For Rust