pub struct Json5Format { /* private fields */ }
Expand description
A JSON5 formatter that parses a valid JSON5 input buffer and produces a new, formatted document.
Implementations§
Source§impl Json5Format
impl Json5Format
Sourcepub fn with_options(options: FormatOptions) -> Result<Self, Error>
pub fn with_options(options: FormatOptions) -> Result<Self, Error>
Create and return a Json5Format, with the given options to be applied to the Json5Format::to_utf8() operation.
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Create and return a Json5Format, with the default settings.
Auto Trait Implementations§
impl Freeze for Json5Format
impl !RefUnwindSafe for Json5Format
impl !Send for Json5Format
impl !Sync for Json5Format
impl Unpin for Json5Format
impl !UnwindSafe for Json5Format
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more