pub fn requires_escape(byte: u8) -> bool
Expand description

Returns true if the given byte must be escaped with a backtick.

The following ASCII bytes do not require escaping, and are left un-escaped in a tick-encoded string:

  • Tab (\t, 0x09)
  • Newline (\n, 0x0A)
  • Carriage return (\r, 0x0D)
  • Space ( , 0x20)
  • Printable characters except bactick (0x21 to 0x59, 0x61 to 0x7E)