Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

assert rust

// assert(expr[, message, ...])

// Panics
assert!(1 == 2);

// Panics with a message
assert!(1 == 2, "The rules of the universe arent broken!");
 
PREVIOUS NEXT
Tagged: #assert #rust
ADD COMMENT
Topic
Name
5+9 =