diagnostics_log_encoding::encode

Trait WriteArgumentValue

Source
pub trait WriteArgumentValue<B>: Sealed {
    // Required method
    fn write_value(
        &self,
        header: &mut Header,
        encoder: &mut Encoder<B>,
    ) -> Result<(), EncodingError>;
}
Expand description

Trait implemented by types which can be written to the encoder.

Required Methods§

Source

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Writes the value of the argument.

Implementations on Foreign Types§

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for &str

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for Cow<'_, str>

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for bool

Source§

fn write_value( &self, header: &mut Header, _encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for f64

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for i64

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for u64

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Source§

impl<B: MutableBuffer> WriteArgumentValue<B> for String

Source§

fn write_value( &self, header: &mut Header, encoder: &mut Encoder<B>, ) -> Result<(), EncodingError>

Implementors§