Struct json5format::Json5Format
source · 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