unit type
The empty value (), meaning "nothing to report".
The unit type () has exactly one value, (); functions with no return type return it.
Examples
let result = announce("Otters");stores(), andprintln!("{result:?}")prints().
See also
The empty value (), meaning "nothing to report".
The unit type () has exactly one value, (); functions with no return type return it.
Examples
let result = announce("Otters"); stores (), and println!("{result:?}") prints ().
See also