io
22 items · generated by scribe fromstdlib/io.fd· synced 2026-11-15
Contents
- STDIN: (const)
- io_print (function)
- io_println (function)
- io_print_int (function)
- io_println_int (function)
- io_eprint (function)
- io_eprintln (function)
- io_putc (function)
- io_newline (function)
- io_getc (function)
- io_readln (function)
- io_read_all (function)
- io_read_lines (function)
- io_flush (function)
- io_flush_err (function)
- io_print_args (function)
- io_print_separator (function)
- io_print_header (function)
STDIN:
pub const STDIN: i64 = 0; pub const STDOUT: i64 = 1; pub const STDERR: i64 = 2;Defined at line 24
io_print
Print a string without a newline.
pub fn io_print(s: str) -> void {Parameters:
s:str
Returns: void
Defined at line 28
io_println
Print a string followed by a newline.
pub fn io_println(s: str) -> void {Parameters:
s:str
Returns: void
Defined at line 33
io_print_int
Print an integer.
pub fn io_print_int(n: i64) -> void {Parameters:
n:i64
Returns: void
Defined at line 38
io_println_int
Print an integer followed by a newline.
pub fn io_println_int(n: i64) -> void {Parameters:
n:i64
Returns: void
Defined at line 43
io_eprint
Print to stderr.
pub fn io_eprint(s: str) -> void {Parameters:
s:str
Returns: void
Defined at line 48
io_eprintln
Print to stderr followed by a newline.
pub fn io_eprintln(s: str) -> void {Parameters:
s:str
Returns: void
Defined at line 53
io_putc
Print a character.
pub fn io_putc(ch: i64) -> void {Parameters:
ch:i64
Returns: void
Defined at line 59
io_newline
Print a newline.
pub fn io_newline() -> void {Returns: void
Defined at line 64
io_getc
Read a single character from stdin. Returns -1 on EOF.
pub fn io_getc() -> i64 {Returns: i64
Defined at line 72
io_readln
Read a line from stdin (without the trailing newline). Returns "" on EOF.
pub fn io_readln() -> str {Returns: str
Defined at line 78
io_read_all
Read all of stdin into a string.
pub fn io_read_all() -> str {Returns: str
Defined at line 90
io_read_lines
Read all of stdin into a Vec of lines.
pub fn io_read_lines() -> Vec<str> {Returns: Vec<str>
Defined at line 101
io_flush
Flush stdout.
pub fn io_flush() -> void {Returns: void
Defined at line 124
io_flush_err
Flush stderr: it is not buffered.
pub fn io_flush_err() -> void {Returns: void
Defined at line 129
io_print_args
Print multiple values separated by spaces, followed by a newline.
pub fn io_print_args(args: Vec<i64>) -> void {Parameters:
args:Vec<i64>
Returns: void
Defined at line 135
io_print_separator
Print a separator line.
pub fn io_print_separator(ch: i64, width: i64) -> void {Parameters:
ch:i64width:i64
Returns: void
Defined at line 150
io_print_header
Print a header with separator lines above and below.
pub fn io_print_header(title: str, width: i64) -> void {Parameters:
title:strwidth:i64
Returns: void
Defined at line 160
Generated by scribe, the Fides documentation generator