Skip to main content

prettify

Function prettify 

Source
pub fn prettify(mode: PrettifyMode, input: &[u8]) -> Result<Vec<u8>, String>
Expand description

Run the transform for mode over input. Off returns the input verbatim (still allocates — callers can short-circuit if they care). On parse failure, returns the error string for the status line.