trap

Function trap 

Source
pub fn trap<T: AsRef<str>>(data: T) -> !
Expand description

Traps with the given message.

The environment may copy out the data and log, print or store it in an environment-appropriate way, or include it in system-generated reject messages where appropriate.