Module std::io

Overview

The std::io module contains a number of common things you’ll need when doing input and output. The most core parts of this module are the print(), println(), and dbg() functions which are used to hook up printing for a Rune project.

With complete names:

  • ::std::io::print
  • ::std::io::println
  • ::std::io::dbg

Their definitions can be omitted from the built-in standard library, and can then easily be defined by third party modules allowing for printing to be hooked up to whatever system you want.

Types

Error

Functions

dbg

Debug to output.

print

Prints to output.

println

Prints to output, with a newline.

Macros

dbg!

Debug print the given argument.

print!

Prints to output.

println!

Prints to output, with a newline.