pub fn pack<T>(value: T) -> Option<Any>
where
    T: AsRef<[u8]>,
{
    Some(Any {
        value: value.as_ref().to_vec(),
        type_url: format!("{}/{}", RUST_LANG_URL, type_name::<T>()),
    })
}
/// Pack the given data as a byte array in native byte order.
Pack the given data as a byte array in native byte order.
Pack the given data as a byte array in native byte order .
pub fn pack<T>(value: T) -> Option<Any>
where
    T: AsRef<[u8]>,
{
    Some(Any {
        value: value.as_ref().to_vec(),
        type_url: format!("{}/{}", RUST_LANG_URL, type_name::<T>()),
    })
}
pub fn pack < T > ( value : T ) -> Option < Any > where T : AsRef < [ u8 ] > , { Some ( Any { value : value . as_ref ( ) . to_vec ( ) , type_url : format ! ( " " RUST_LANG_URL type_name T ( ) ) , } ) }
Pack the given data as a byte array in native byte order.
Pack the given data as a byte array in native byte order .
value
T
value
T