pub fn serialize_raw<S>(slice: &mut [u8], bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where
	S: Serializer,
{
	if bytes.is_empty() {
		serializer.serialize_str("0x")
	} else {
		serializer.serialize_str(to_hex_raw(slice, bytes, false))
	}
}
/// Serializes a slice of bytes.
Serializes a slice of bytes.
Serializes a slice of bytes .
pub fn serialize_raw<S>(slice: &mut [u8], bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where
	S: Serializer,
{
	if bytes.is_empty() {
		serializer.serialize_str("0x")
	} else {
		serializer.serialize_str(to_hex_raw(slice, bytes, false))
	}
}
pub fn serialize_raw < S > ( slice : & mut [ u8 ] , bytes : & [ u8 ] , serializer : S ) -> Result < S :: Ok , S :: Error > where S : Serializer , { if bytes . is_empty ( ) { serializer . serialize_str ( " " ) } else { serializer . serialize_str ( to_hex_raw ( slice , bytes , false ) ) } }
Serializes a slice of bytes.
Serializes a slice of bytes .
slice
&mut [u8]
bytes
&[u8]
serializer
S
slice
&mut [u8]
bytes
&[u8]
serializer
S