pub struct Preview {
pub size: Vec2<usize>,
pub pixel_data: Vec<i8>,
}
Expand description
A small rgba
image of i8
values that approximates the real exr image.
Fields§
§size: Vec2<usize>
The dimensions of the preview image.
pixel_data: Vec<i8>
An array with a length of 4 × width × height.
The pixels are stored in LineOrder::Increasing
.
Each pixel consists of the four u8
values red, green, blue, alpha.
Implementations§
Trait Implementations§
impl Eq for Preview
impl StructuralPartialEq for Preview
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnwindSafe for Preview
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)