Function exit

Source
pub fn exit(code: usize) -> !
Expand description

Exits the current thread, threads don’t have an exit code however if the thread was the last thread in the process, then the process will exit with code code