Skip to main content

display

Function display 

Source
pub fn display(value: &Value) -> String
Expand description

Coerces one value to its display form.

This is the form used by bare-word arguments, double-quoted interpolation, and emitted output:

  • strings are reproduced verbatim, without quotes,
  • numbers use their JSON literal,
  • booleans become true or false,
  • null becomes the empty string,
  • arrays and objects become compact JSON text.