WriteJsonKey

Trait WriteJsonKey 

Source
pub trait WriteJsonKey {
    // Required method
    fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> Result;
}

Required Methods§

Source

fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> 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.

Implementations on Foreign Types§

Source§

impl WriteJsonKey for Cow<'_, str>

Available on crate feature alloc only.
Source§

fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> Result

Source§

impl WriteJsonKey for str

Source§

fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> Result

Source§

impl WriteJsonKey for String

Available on crate feature alloc only.
Source§

fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> Result

Source§

impl<V: WriteJsonKey + ?Sized> WriteJsonKey for &V

Source§

fn write_json_key<W: JsonWrite + ?Sized>(&self, writer: &mut W) -> Result

Implementors§