psd 0.3.5

A Rust API for parsing and working with PSD files.
Documentation
use crate::sections::image_resources_section::DescriptorStructure;

/// An image resource from the image resources section
#[derive(Debug)]
#[allow(missing_docs)]
pub enum ImageResource {
    Slices(SlicesImageResource),
}

/// Comes from a slices resource block
#[derive(Debug)]
pub struct SlicesImageResource {
    pub(crate) name: String,
    pub(crate) descriptors: Vec<DescriptorStructure>,
}

#[allow(missing_docs)]
impl SlicesImageResource {
    pub fn name(&self) -> &String {
        &self.name
    }

    pub fn descriptors(&self) -> &Vec<DescriptorStructure> {
        &self.descriptors
    }
}