pub struct ImageFormat {
pub width: u32,
pub height: u32,
pub pixfmt: PixelFormat,
pub stride: Option<usize>,
}Expand description
Image buffer format description
Fields§
§width: u32Width in pixels
height: u32Height in pixels
pixfmt: PixelFormatPixelFormat
stride: Option<usize>Length of a pixel row in bytes
Implementations§
Source§impl ImageFormat
impl ImageFormat
Sourcepub fn new(width: u32, height: u32, pixfmt: PixelFormat) -> Self
pub fn new(width: u32, height: u32, pixfmt: PixelFormat) -> Self
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnwindSafe for ImageFormat
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