usebincode::Decode;usecrate::Result;/// Decodes a given type `T` from the given slice. returns the decoded value
/// along with the number of bytes read.
pubfndecode<T: Decode>(src:&[u8])->Result<(T, usize)>{let(result, bytes_read)=bincode::decode_from_slice(src,bincode::config::standard())?;Ok((result, bytes_read))}