pub fn decode(data: &mut BytesSlice<'_>) -> Result<Vec<Datum>> {
    let mut res = vec![];
    while !data.is_empty() {
        let v = decode_datum(data)?;
        res.push(v);
    }
    Ok(res)
}
/// `decode` decodes all datum from a byte slice generated by tidb.
`decode` decodes all datum from a byte slice generated by tidb.
` decode ` decodes all datum from a byte slice generated by tidb .
pub fn decode(data: &mut BytesSlice<'_>) -> Result<Vec<Datum>> {
    let mut res = vec![];
    while !data.is_empty() {
        let v = decode_datum(data)?;
        res.push(v);
    }
    Ok(res)
}
pub fn decode ( data : & mut BytesSlice < ' _ > ) -> Result < Vec < Datum > > { let mut res = vec ! [ ] ; while ! data . is_empty ( ) { let v = decode_datum ( data ) ? ; res . push ( v ) ; } Ok ( res ) }
`decode` decodes all datum from a byte slice generated by tidb.
` decode ` decodes all datum from a byte slice generated by tidb .
data
&mut BytesSlice<'_>
data
&mut BytesSlice<'_>