Struct gjson::tools::PrettyOptions
source · [−]pub struct PrettyOptions<'a> { /* private fields */ }
Implementations
sourceimpl<'a> PrettyOptions<'a>
impl<'a> PrettyOptions<'a>
pub fn new() -> PrettyOptions<'a>
pub fn width(self, width: usize) -> Self
pub fn prefix(self, prefix: &'a str) -> Self
pub fn indent(self, indent: &'a str) -> Self
pub fn sort_keys(self, sort_keys: bool) -> Self
pub fn pretty<J>(&self, json: J) -> String where
J: AsRef<str>,
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for PrettyOptions<'a>
impl<'a> Send for PrettyOptions<'a>
impl<'a> Sync for PrettyOptions<'a>
impl<'a> Unpin for PrettyOptions<'a>
impl<'a> UnwindSafe for PrettyOptions<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more