Skip to main content

print

Function print 

Source
pub fn print<T: tostring>(values: Repeatable<T>)
Expand description

Receives any number of arguments and prints their values to the standard output, converting each to a string following the same rules as tostring(), separated by tabs and followed by a newline.

print is meant for quick debugging, not for formatted output — for that, use string::format and io::write.

§Examples

print("x", 42, true)      --> x   42   true
print()                   --> (just a newline)