pub fn orientation(&self) -> Orientations {
        // SAFETY: Safe if `self.handle` is sane.
        // PANICS: Theoretically never. The `try_into()` on orientations returned by the C library should never fail.
        let c_orientation = unsafe { (*self.handle).orientation };
        Orientations {
            x: (c_orientation.x as sys::ktxOrientationX)
                .try_into()
                .unwrap(),
            y: (c_orientation.y as sys::ktxOrientationY)
                .try_into()
                .unwrap(),
            z: (c_orientation.z as sys::ktxOrientationZ)
                .try_into()
                .unwrap(),
        }
    }
/// Returns the logical orientation of this texture in all possible directions (X, Y and Z).
Returns the logical orientation of this texture in all possible directions (X, Y and Z).
Returns the logical orientation of this texture in all possible directions ( X Y and Z ) .
pub fn orientation(&self) -> Orientations {
        // SAFETY: Safe if `self.handle` is sane.
        // PANICS: Theoretically never. The `try_into()` on orientations returned by the C library should never fail.
        let c_orientation = unsafe { (*self.handle).orientation };
        Orientations {
            x: (c_orientation.x as sys::ktxOrientationX)
                .try_into()
                .unwrap(),
            y: (c_orientation.y as sys::ktxOrientationY)
                .try_into()
                .unwrap(),
            z: (c_orientation.z as sys::ktxOrientationZ)
                .try_into()
                .unwrap(),
        }
    }
pub fn orientation ( & self ) -> Orientations { // SAFETY: Safe if `self.handle` is sane. // PANICS: Theoretically never. The `try_into()` on orientations returned by the C library should never fail. let c_orientation = unsafe { ( * self . handle ) . orientation } ; Orientations { x : ( c_orientation . x as sys :: ktxOrientationX ) . try_into ( ) . unwrap ( ) , y : ( c_orientation . y as sys :: ktxOrientationY ) . try_into ( ) . unwrap ( ) , z : ( c_orientation . z as sys :: ktxOrientationZ ) . try_into ( ) . unwrap ( ) , } }
Returns the logical orientation of this texture in all possible directions (X, Y and Z).
Returns the logical orientation of this texture in all possible directions ( X Y and Z ) .
&self
&self