pub trait EncodeLabelKey {
    // Required method
    fn encode(&self, encoder: &mut LabelKeyEncoder<'_>) -> Result<(), Error>;
}
Expand description

An encodable label key.

Required Methods§

source

fn encode(&self, encoder: &mut LabelKeyEncoder<'_>) -> Result<(), Error>

Encode oneself into the given encoder.

Implementations on Foreign Types§

source§

impl EncodeLabelKey for &str

source§

fn encode(&self, encoder: &mut LabelKeyEncoder<'_>) -> Result<(), Error>

source§

impl EncodeLabelKey for String

source§

fn encode(&self, encoder: &mut LabelKeyEncoder<'_>) -> Result<(), Error>

source§

impl<'a> EncodeLabelKey for Cow<'a, str>

source§

fn encode(&self, encoder: &mut LabelKeyEncoder<'_>) -> Result<(), Error>

Implementors§