fn exit(s: &str) -> !
{
    if !s.is_empty()
    {
        p!(s);
    }

    process::exit(0)
}
// Custom function to exit
// with an optional message
Custom function to exit
with an optional message
Custom function to exit with an optional message
fn exit(s: &str) -> !
{
    if !s.is_empty()
    {
        p!(s);
    }
    process::exit(0)
}
fn exit ( s : & str ) -> ! { if ! s . is_empty ( ) { p ! ( s ) ; } process :: exit ( 0 ) }
Custom function to exit
with an optional message
Custom function to exit with an optional message
s
&str
s
&str