pub trait JsonWrite {
// Required methods
fn write(&mut self, buf: &[u8]);
fn reserve(&mut self, additional: usize);
}Expand description
Re-export the Write trait from facet-core for backwards compatibility.
This trait is used by the JSON serializer to write output without depending
on std::io::Write, enabling no_std support.
A no_std compatible write trait used by facet serializers.
This trait provides a simple interface for writing bytes, designed to work
in no_std environments while remaining compatible with standard library types.