pub enum LayerDepth {
OneChannel,
OneChannelAndAlpha,
Color,
ColorAndAlpha,
Vector,
VectorAndAlpha,
FourChannels,
FourChannelsAndAlpha,
}Expand description
The depth (number and type of channels) a pixel in a Layer is
composed of.
Variants§
OneChannel
A single channel. Obtained when setting "layertype" "scalar" on an
OutputLayer.
OneChannelAndAlpha
A single channel with alpha. Obtained when setting "layertype"
"scalar" and "withalpha" 1 on an
OutputLayer.
Color
An rgb color triplet. Obtained when setting "layertype" "color"
on an OutputLayer.
ColorAndAlpha
An rgb color triplet with alpha. Obtained when setting "layertype"
"color" and "withalpha" 1 on an
OutputLayer.
Vector
An xyz triplet. Obtained when setting "layertype" "vector" on an
OutputLayer.
VectorAndAlpha
An xyz triplet with alpha. Obtained when setting "layertype"
"vector" and "withalpha" 1 on an
OutputLayer.
FourChannels
An quadruple of values. Obtained when setting "layertype" "quad" on
an OutputLayer.
FourChannelsAndAlpha
An quadruple of values with alpha. Obtained when setting "layertype"
"quad" and "withalpha" 1 on an
OutputLayer.
Implementations§
Trait Implementations§
Source§impl Clone for LayerDepth
impl Clone for LayerDepth
Source§fn clone(&self) -> LayerDepth
fn clone(&self) -> LayerDepth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LayerDepth
impl Debug for LayerDepth
Source§impl Default for LayerDepth
impl Default for LayerDepth
Source§fn default() -> LayerDepth
fn default() -> LayerDepth
Source§impl PartialEq for LayerDepth
impl PartialEq for LayerDepth
impl Copy for LayerDepth
impl StructuralPartialEq for LayerDepth
Auto Trait Implementations§
impl Freeze for LayerDepth
impl RefUnwindSafe for LayerDepth
impl Send for LayerDepth
impl Sync for LayerDepth
impl Unpin for LayerDepth
impl UnwindSafe for LayerDepth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more