Trait json_syntax::print::Print
source · [−]pub trait Print {
fn fmt_with(
&self,
f: &mut Formatter<'_>,
options: &Options,
indent: usize
) -> Result;
fn pretty_print(&self) -> Printed<'_, Self> { ... }
fn print_with(&self, options: Options) -> Printed<'_, Self> { ... }
}
Expand description
Print methods.
Required Methods
Provided Methods
fn pretty_print(&self) -> Printed<'_, Self>
fn pretty_print(&self) -> Printed<'_, Self>
Print the value with Options::pretty
options.
fn print_with(&self, options: Options) -> Printed<'_, Self>
fn print_with(&self, options: Options) -> Printed<'_, Self>
Print the value with the given options.