std.display

Standard-library module std.display.

Importuse std.display

Types

interface Display#

A value that chooses its user-facing string representation.

to_string(value), value.to_string(), interpolation, and recursive collection rendering call fmt when the value's concrete type implements this interface. Values without an implementation retain moon's structural rendering. Use value.mirror() when a structural value tree is required.

fn fmt(self: Display) -> string#