#[non_exhaustive]pub struct PixelBufParts {
pub storage: PixelStorage,
pub byte_offset: usize,
pub width: u32,
pub height: u32,
pub stride_bytes: usize,
pub format: PixelFormat,
pub hdr: HdrMetadata,
pub origin: ColorOrigin,
pub orientation: Orientation,
}Expand description
Full re-export of zenpixels core types (zero module name collisions!).
Decomposed parts returned by PixelBuf::into_parts.
Carries owned backing storage, geometry, and descriptive metadata without
attached SampleClaims. Reconstructing a PixelBuf via
PixelBuf::from_parts or PixelBuf::from_parts_recover starts with
SampleClaims::NONE; re-verify or re-attach claims explicitly if needed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.storage: PixelStorageUnderlying alignment-exact storage.
byte_offset: usizeByte offset of (0, 0) within storage.as_bytes().
width: u32Image width in pixels.
height: u32Image height in rows.
stride_bytes: usizeByte stride between rows.
format: PixelFormatPixel format (layout + color space).
hdr: HdrMetadataDescriptive HDR metadata.
origin: ColorOriginContainer provenance.
orientation: OrientationPending EXIF display orientation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PixelBufParts
impl !UnwindSafe for PixelBufParts
impl Freeze for PixelBufParts
impl Send for PixelBufParts
impl Sync for PixelBufParts
impl Unpin for PixelBufParts
impl UnsafeUnpin for PixelBufParts
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