Skip to main content

impl_enum_encode

Macro impl_enum_encode 

Source
macro_rules! impl_enum_encode {
    ($enum_type:ty) => { ... };
}
Expand description

Implements EncodedLen, EncodeToSlice, and EncodeToWrite for an enum type.

The enum must implement proto_packet::io::WithTagNumber.