std::io
Input & Output Functions
Categories:
A list of all the functions in the std::io
module.
This is a standard library containing support functions for handling some basic IO operations.
All functions in std::io
have a canonical path that starts with project::std::io::<function>
.
For example: project::std::io::write("Hello World\n")
.
Functions
Function | Description |
---|---|
readi64 |
Reads a single i64 from stdin |
write |
Writes a string to stdout |
writeln |
Same as write but appends a newline character |
writebool |
Writes a bool to stdout . This will write either true or false |
writeboolln |
Writes a bool to stdout and moves to a newline. This will write either true or false . |
writef64 |
Writes an f32 to stdout |
writef64ln |
Writes an f32 to stdout and moves to a newline |
writei8 |
Writes an i8 to stdout |
writei16 |
Writes an i16 to stdout |
writei32 |
Writes an i32 to stdout |
writei64 |
Writes an i32 to stdout |
writeu8 |
Writes an u8 to stdout |
writeu16 |
Writes an u16 to stdout |
writeu32 |
Writes an u32 to stdout |
writeu64 |
Writes an u64 to stdout |
writei8ln |
Writes an i8 to stdout and moves to a newline |
writei16ln |
Writes an i16 to stdout and moves to a newline |
writei32ln |
Writes an i32 to stdout and moves to a newline |
writei64ln |
Writes an i64 to stdout and moves to a newline |
writeu8ln |
Writes a u8 to stdout and moves to a newline |
writeu16ln |
Writes a u16 to stdout and moves to a newline |
writeu32ln |
Writes a u32 to stdout and moves to a newline |
writeu64ln |
Writes a u64 to stdout and moves to a newline |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified February 8, 2022: Add in f64 primitive and IO function (662bb32)