pub(crate) fn encode_or_panic<T: Message>(msg: &T) -> Vec<u8> {
    let mut buf = Vec::<u8>::new();
    msg.encode(&mut buf).unwrap();
    buf
}
/// Wraps around Message::encode and panics on error.
Wraps around Message::encode and panics on error.
Wraps around Message :: encode and panics on error .
pub(crate) fn encode_or_panic<T: Message>(msg: &T) -> Vec<u8> {
    let mut buf = Vec::<u8>::new();
    msg.encode(&mut buf).unwrap();
    buf
}
pub ( crate ) fn encode_or_panic < T : Message > ( msg : & T ) -> Vec < u8 > { let mut buf = Vec :: < u8 > :: new ( ) ; msg . encode ( & mut buf ) . unwrap ( ) ; buf }
Wraps around Message::encode and panics on error.
Wraps around Message :: encode and panics on error .
msg
&T
msg
&T