pub struct RgbData {
pub data: Vec<u8>,
pub width: u32,
pub height: u32,
pub interpolate: bool,
}Expand description
A structure holding 3-channel RGB data.
Fields§
§data: Vec<u8>The actual data. It is guaranteed to have the length width * height * 3.
width: u32The width.
height: u32The height.
interpolate: boolWhether the image should be interpolated.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RgbData
impl RefUnwindSafe for RgbData
impl Send for RgbData
impl Sync for RgbData
impl Unpin for RgbData
impl UnwindSafe for RgbData
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