JsonWrite

Trait JsonWrite 

Source
pub trait JsonWrite {
    // Required methods
    fn write(&mut self, buf: &[u8]);
    fn reserve(&mut self, additional: usize);
}
Expand description

no_std compatible Write trait used by the json serializer.

Required Methods§

Source

fn write(&mut self, buf: &[u8])

Write all these bytes to the writer.

Source

fn reserve(&mut self, additional: usize)

If the writer supports it, reserve space for len additional bytes.

Implementations on Foreign Types§

Source§

impl JsonWrite for &mut Vec<u8>

Source§

fn write(&mut self, buf: &[u8])

Source§

fn reserve(&mut self, additional: usize)

Source§

impl JsonWrite for Vec<u8>

Source§

fn write(&mut self, buf: &[u8])

Source§

fn reserve(&mut self, additional: usize)

Implementors§