pub fn sum_type<T: Sized>(data: &T) -> u32 {
    let size = mem::size_of::<T>();
    let ptr  = data as *const T;
    unsafe {
        sum_raw_be(ptr as *const u8, size)
    }
}
/// Sum a given Sized type instance as 16-bit unsigned big endian numbers.
Sum a given Sized type instance as 16-bit unsigned big endian numbers.
Sum a given Sized type instance as 16 - bit unsigned big endian numbers .
pub fn sum_type<T: Sized>(data: &T) -> u32 {
    let size = mem::size_of::<T>();
    let ptr  = data as *const T;
    unsafe {
        sum_raw_be(ptr as *const u8, size)
    }
}
pub fn sum_type < T : Sized > ( data : & T ) -> u32 { let size = mem :: size_of :: < T > ( ) ; let ptr = data as * const T ; unsafe { sum_raw_be ( ptr as * const u8 , size ) } }
Sum a given Sized type instance as 16-bit unsigned big endian numbers.
Sum a given Sized type instance as 16 - bit unsigned big endian numbers .
data
&T
data
&T