Module fmt/index

fmt/index

Formatted output to stdout and stderr.

Traits / Modules

ToString trait
ToString

Methods

to_string : fn(self : *(Self)) -> String

Parameters

NameTypeNotes
self*(Self)

Returns: String

Implementors

Functions

println function
fn(forall(comptime(T) : Type), v : T) -> unit

Print a value that implements ToString to stdout, followed by a newline.

Type Parameters

NameTypeNotes
TTypecomptime

Parameters

NameTypeNotes
vT

Returns: unit

print function
fn(forall(comptime(T) : Type), v : T) -> unit

Print a value that implements ToString to stdout, without a trailing newline.

Type Parameters

NameTypeNotes
TTypecomptime

Parameters

NameTypeNotes
vT

Returns: unit

eprintln function
fn(forall(comptime(T) : Type), v : T) -> unit

Print a value that implements ToString to stderr, followed by a newline.

Type Parameters

NameTypeNotes
TTypecomptime

Parameters

NameTypeNotes
vT

Returns: unit

eprint function
fn(forall(comptime(T) : Type), v : T) -> unit

Print a value that implements ToString to stderr, without a trailing newline.

Type Parameters

NameTypeNotes
TTypecomptime

Parameters

NameTypeNotes
vT

Returns: unit