#[non_exhaustive]pub struct PsdMetadata {
pub width: u32,
pub height: u32,
pub color_mode: u16,
pub depth: u16,
pub channel_count: u16,
}Expand description
File-wide PSD header metadata.
Returned from parse_psd_metadata.
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.width: u32Canvas width in pixels.
height: u32Canvas height in pixels.
color_mode: u16PSD-wide color mode constant. See https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577409_pgfId-1055726
depth: u16Color depth in bytes. Only 8-bit (1-byte) images are currently supported.
channel_count: u16Number of channels in the PSD file’s colorspace, including alpha. Only Y/YA, RGB/RGBA, and CMYK/CMYKA images are currently supported.
Trait Implementations§
Source§impl Debug for PsdMetadata
impl Debug for PsdMetadata
Source§impl PartialEq for PsdMetadata
impl PartialEq for PsdMetadata
impl StructuralPartialEq for PsdMetadata
Auto Trait Implementations§
impl Freeze for PsdMetadata
impl RefUnwindSafe for PsdMetadata
impl Send for PsdMetadata
impl Sync for PsdMetadata
impl Unpin for PsdMetadata
impl UnwindSafe for PsdMetadata
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