Skip to content

stdlib/ioView source ↗

io

22 items · generated by scribe fromstdlib/io.fd· synced 2026-11-15

stdlib/io22 items

Contents

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: i64
  • width: 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: str
  • width: i64

Returns: void

Defined at line 160


Generated by scribe, the Fides documentation generator