tinymist_std::typst::foundations

Module repr

Expand description

Debug representation of values.

Constants§

Traits§

  • A trait that defines the repr of a Typst value.

Functions§

  • Converts a float to a string that can be used to display the float as text.
  • Converts a float to a string representation with a specific precision and a unit, all with a single allocation.
  • 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.
  • Converts a float to a string representation with a precision of two decimal places, followed by a unit.
  • Format an integer in a base.
  • Formats an array-like construct.
  • Formats a comma-separated list.
  • Returns the string representation of a value.
  • Formats pieces separated with commas and a final “and” or “or”.