pub fn serialize<S>(bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where
	S: Serializer,
{
	let mut slice = vec![0u8; (bytes.len() + 1) * 2];
	serialize_raw(&mut slice, bytes, serializer)
}
/// Serializes a slice of bytes.
Serializes a slice of bytes.
Serializes a slice of bytes .
pub fn serialize<S>(bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>
where
	S: Serializer,
{
	let mut slice = vec![0u8; (bytes.len() + 1) * 2];
	serialize_raw(&mut slice, bytes, serializer)
}
pub fn serialize < S > ( bytes : & [ u8 ] , serializer : S ) -> Result < S :: Ok , S :: Error > where S : Serializer , { let mut slice = vec ! [ 0u8 ( bytes len ( ) 1 ) 2 ] ; serialize_raw ( & mut slice , bytes , serializer ) }
Serializes a slice of bytes.
Serializes a slice of bytes .
bytes
&[u8]
serializer
S
bytes
&[u8]
serializer
S