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