Key

Trait Key 

Source
pub trait Key: Sealed {
    // Required method
    fn write<S: JsonBuffer>(self, out: &mut S);
}
Expand description

A key for a JSON object’s field.

Required Methods§

Source

fn write<S: JsonBuffer>(self, out: &mut S)

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.

Implementors§

Source§

impl Key for UnescapedStr<'_>

Source§

impl<T: AsRef<str>> Key for T