nu_json::ser

Function to_writer_with_tab_indentation

Source
pub fn to_writer_with_tab_indentation<W, T>(
    writer: &mut W,
    value: &T,
    tabs: usize,
) -> Result<()>
where W: Write, T: Serialize,
Expand description

Encode the specified struct into a Hjson [u8] writer.