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

An encodable label set.

Required Methods§

source

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

Encode oneself into the given encoder.

Implementations on Foreign Types§

source§

impl EncodeLabelSet for ()

source§

fn encode(&self, _encoder: LabelSetEncoder<'_>) -> Result<(), Error>

source§

impl<T: EncodeLabel> EncodeLabelSet for &[T]

source§

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

source§

impl<T: EncodeLabel> EncodeLabelSet for Vec<T>

source§

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

source§

impl<T: EncodeLabel, const N: usize> EncodeLabelSet for [T; N]

source§

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

Implementors§