pub struct PsdLayer { /* private fields */ }
Expand description
PsdLayer represents a pixel layer
Implementations
sourceimpl PsdLayer
impl PsdLayer
sourcepub fn new(
layer_record: &LayerRecord,
psd_width: u32,
psd_height: u32,
group_id: Option<u32>,
channels: HashMap<PsdChannelKind, ChannelBytes>
) -> PsdLayer
pub fn new(
layer_record: &LayerRecord,
psd_width: u32,
psd_height: u32,
group_id: Option<u32>,
channels: HashMap<PsdChannelKind, ChannelBytes>
) -> PsdLayer
Create a new photoshop layer
sourcepub fn compression(
&self,
channel: PsdChannelKind
) -> Result<PsdChannelCompression, PsdChannelError>
pub fn compression(
&self,
channel: PsdChannelKind
) -> Result<PsdChannelCompression, PsdChannelError>
Get the compression level for one of this layer’s channels
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PsdLayer
impl Send for PsdLayer
impl Sync for PsdLayer
impl Unpin for PsdLayer
impl UnwindSafe for PsdLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more