Macro impl_encode_to_write_stack_buf

Source
macro_rules! impl_encode_to_write_stack_buf {
    ($target_type:ty, $max_len:expr) => { ... };
}
Expand description

Implements EncodeToWrite for a type that also implements EncodeToSlice where the encoding has a small maximum encoded length. The data is buffered on the stack before it is written out.