Module io

Module io 

Source
Available on crate feature io only.
Expand description

Provides functionality for interacting with the standard I/O streams.

Modules§

stderr
A handle to the standard error stream.
stdin
A handle to the standard input stream.
stdout
A handle to the standard output stream.

Enums§

NSTDIOError
An error type for I/O operations.

Functions§

nstd_io_print
Writes a string slice to stdout.
nstd_io_print_line
Writes a string slice to stdout followed by a new line.
nstd_io_read
Reads a line of UTF-8 input from stdin, discarding the newline character.
nstd_io_read_line
Reads a line of UTF-8 input from stdin.

Type Aliases§

NSTDIOBufferResult
A result type that yields an NSTDVec on success and an I/O operation error code on failure.
NSTDIOResult
A result type that yields an NSTDUInt representing the number of bytes read or written by an I/O operation on success and an I/O operation error code on failure.
NSTDIOStringResult
A result type that yields a UTF-8 string on success and an I/O operation error code on failure.