Skip to main content

WriteTomlKey

Trait WriteTomlKey 

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

Required Methods§

Source

fn write_toml_key<W: TomlWrite + ?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".

Implementations on Foreign Types§

Source§

impl WriteTomlKey for Cow<'_, str>

Available on crate feature alloc only.
Source§

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

Source§

impl WriteTomlKey for String

Available on crate feature alloc only.
Source§

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

Source§

impl WriteTomlKey for str

Source§

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

Source§

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

Source§

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

Implementors§