pub fn align<'a, S: 'a, T: AsRef<[S]> + ?Sized>(bytes: &'a T) -> &'a [Self] {
        let bytes = bytes.as_ref();
        let (head, body, tail) = unsafe { bytes.align_to::<Self>() };

        // Panic if the bytes weren't correctly alligned
        if !(head.is_empty() && tail.is_empty()) {
            panic!("Bgra8::align: input is not a valid Rgba8 buffer");
        }
        body
    }
/// Given a byte slice, returns a slice of `Bgra8` values.
Given a byte slice, returns a slice of `Bgra8` values.
Given a byte slice returns a slice of ` Bgra8 ` values .
pub fn align<'a, S: 'a, T: AsRef<[S]> + ?Sized>(bytes: &'a T) -> &'a [Self] {
        let bytes = bytes.as_ref();
        let (head, body, tail) = unsafe { bytes.align_to::<Self>() };
        // Panic if the bytes weren't correctly alligned
        if !(head.is_empty() && tail.is_empty()) {
            panic!("Bgra8::align: input is not a valid Rgba8 buffer");
        }
        body
    }
pub fn align < ' a , S : ' a , T : AsRef < [ S ] > + ? Sized > ( bytes : & ' a T ) -> & ' a [ Self ] { let bytes = bytes . as_ref ( ) ; let ( head , body , tail ) = unsafe { bytes . align_to :: < Self > ( ) } ; // Panic if the bytes weren't correctly alligned if ! ( head . is_empty ( ) && tail . is_empty ( ) ) { panic ! ( " " ) ; } body }
Given a byte slice, returns a slice of `Bgra8` values.
Given a byte slice returns a slice of ` Bgra8 ` values .
bytes
&'a T