pub struct JSONStringWriter<'a, Writer: JSONWriter = String> {
pub writer: &'a mut Writer,
}
Expand description
Build a string using the fmt::Write
impl
Fields§
§writer: &'a mut Writer
The generic writer
Implementations§
Source§impl<'a, Writer: JSONWriter> JSONStringWriter<'a, Writer>
impl<'a, Writer: JSONWriter> JSONStringWriter<'a, Writer>
Sourcepub fn new(writer: &mut Writer) -> JSONStringWriter<'_, Writer>
pub fn new(writer: &mut Writer) -> JSONStringWriter<'_, Writer>
Creates a new JSONStringWriter that writes to the given buffer. Writes ‘“’ to the buffer immediately.
Trait Implementations§
Source§impl<Writer: JSONWriter> Drop for JSONStringWriter<'_, Writer>
impl<Writer: JSONWriter> Drop for JSONStringWriter<'_, Writer>
Auto Trait Implementations§
impl<'a, Writer> Freeze for JSONStringWriter<'a, Writer>
impl<'a, Writer> RefUnwindSafe for JSONStringWriter<'a, Writer>where
Writer: RefUnwindSafe,
impl<'a, Writer> Send for JSONStringWriter<'a, Writer>where
Writer: Send,
impl<'a, Writer> Sync for JSONStringWriter<'a, Writer>where
Writer: Sync,
impl<'a, Writer> Unpin for JSONStringWriter<'a, Writer>
impl<'a, Writer = String> !UnwindSafe for JSONStringWriter<'a, Writer>
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