pub struct JsonWriter { /* private fields */ }Expand description
This struct implements the ModelWriter trait to write a Model
in the JSON AST representation.
Currently the JSON writer takes only one parameter which determines whether the resulting JSON
should be pretty printed or not, the default is false.
use atelier_json::JsonWriter;
let writer = JsonWriter::default(); // pretty printing off.
let writer = JsonWriter::new(true); // pretty printing on.Implementations§
Trait Implementations§
Source§impl Default for JsonWriter
impl Default for JsonWriter
Source§impl ModelWriter for JsonWriter
impl ModelWriter for JsonWriter
Auto Trait Implementations§
impl Freeze for JsonWriter
impl RefUnwindSafe for JsonWriter
impl Send for JsonWriter
impl Sync for JsonWriter
impl Unpin for JsonWriter
impl UnwindSafe for JsonWriter
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