pub trait WriteJson: Write {
// Provided methods
fn write_u4_hex(&mut self, v: u16) -> Result { ... }
fn write_js_escape(&mut self, c: u16) -> Result { ... }
fn write_js_string(&mut self, s: &JsStringRef<impl Dealloc>) -> Result { ... }
fn write_list<I>(
&mut self,
open: char,
close: char,
v: Ref<FlexibleArray<I, impl FlexibleArrayHeader>, impl Dealloc>,
f: impl Fn(&mut Self, &I) -> Result,
) -> Result { ... }
fn write_json(&mut self, any: Any<impl Dealloc>) -> Result { ... }
}
Provided Methods§
fn write_u4_hex(&mut self, v: u16) -> Result
fn write_js_escape(&mut self, c: u16) -> Result
Sourcefn write_js_string(&mut self, s: &JsStringRef<impl Dealloc>) -> Result
fn write_js_string(&mut self, s: &JsStringRef<impl Dealloc>) -> Result
See https://www.json.org/json-en.html
fn write_list<I>( &mut self, open: char, close: char, v: Ref<FlexibleArray<I, impl FlexibleArrayHeader>, impl Dealloc>, f: impl Fn(&mut Self, &I) -> Result, ) -> Result
fn write_json(&mut self, any: Any<impl Dealloc>) -> Result
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.