Expand description
Debug representation of values.
Constants§
- MINUS_
SIGN - The Unicode minus sign.
Traits§
- Repr
- A trait that defines the
repr
of a Typst value.
Functions§
- display_
float - Converts a float to a string that can be used to display the float as text.
- format_
float - Converts a float to a string representation with a specific precision and a unit, all with a single allocation.
- format_
float_ component - Converts a float to a string representation with a precision of three decimal places. This is intended to be used as part of a larger structure containing multiple float components, such as colors.
- format_
float_ with_ unit - Converts a float to a string representation with a precision of two decimal places, followed by a unit.
- format_
int_ with_ base - Format an integer in a base.
- pretty_
array_ like - Formats an array-like construct.
- pretty_
comma_ list - Formats a comma-separated list.
- repr
- Returns the string representation of a value.
- separated_
list - Formats pieces separated with commas and a final “and” or “or”.