pub struct RawParams {
pub width: u32,
pub height: u32,
pub layout: PixelLayout,
}Expand description
Dimensions and byte order for interpreting a raw pixel buffer.
Fields§
§width: u32Image width in pixels.
height: u32Image height in pixels.
layout: PixelLayoutByte order of each 4-byte pixel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawParams
impl RefUnwindSafe for RawParams
impl Send for RawParams
impl Sync for RawParams
impl Unpin for RawParams
impl UnsafeUnpin for RawParams
impl UnwindSafe for RawParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more