pub fn roundtrip<M: Transform + Default>(input: &[u8]) {
        println!("Input:       {:?}", input);
        let mut model: M = Default::default();
        let tmp = model.transform(&input).unwrap();
        println!("Transformed: {:?}", tmp);
        let result = model.reverse(&tmp).unwrap();
        println!("Reversed:    {:?}", result);
        assert_eq!(result, input)
    }
/// Helper function for testing transformation roundtrips
Helper function for testing transformation roundtrips
Helper function for testing transformation roundtrips
pub fn roundtrip<M: Transform + Default>(input: &[u8]) {
        println!("Input:       {:?}", input);
        let mut model: M = Default::default();
        let tmp = model.transform(&input).unwrap();
        println!("Transformed: {:?}", tmp);
        let result = model.reverse(&tmp).unwrap();
        println!("Reversed:    {:?}", result);
        assert_eq!(result, input)
    }
pub fn roundtrip < M : Transform + Default > ( input : & [ u8 ] ) { println ! ( " " input ) ; let mut model : M = Default :: default ( ) ; let tmp = model . transform ( & input ) . unwrap ( ) ; println ! ( " " tmp ) ; let result = model . reverse ( & tmp ) . unwrap ( ) ; println ! ( " " result ) ; assert_eq ! ( result input ) }
Helper function for testing transformation roundtrips
Helper function for testing transformation roundtrips
input
&[u8]
input
&[u8]