pub enum ImageDensitySource {
Luma,
LumaAlpha,
Red,
Green,
Blue,
Alpha,
}Expand description
Source image preprocessing mode (at the end you get grayscale image representing density map or typically a height map).
Variants§
Luma
Luminosity.
LumaAlpha
Luminosity * Alpha.
Red
Red channel.
Green
Green channel.
Blue
Blue channel.
Alpha
Alpha channel.
Trait Implementations§
Source§impl Clone for ImageDensitySource
impl Clone for ImageDensitySource
Source§fn clone(&self) -> ImageDensitySource
fn clone(&self) -> ImageDensitySource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageDensitySource
impl Debug for ImageDensitySource
Source§impl Default for ImageDensitySource
impl Default for ImageDensitySource
Source§impl<'de> Deserialize<'de> for ImageDensitySource
impl<'de> Deserialize<'de> for ImageDensitySource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ImageDensitySource
impl Serialize for ImageDensitySource
impl Copy for ImageDensitySource
Auto Trait Implementations§
impl Freeze for ImageDensitySource
impl RefUnwindSafe for ImageDensitySource
impl Send for ImageDensitySource
impl Sync for ImageDensitySource
impl Unpin for ImageDensitySource
impl UnwindSafe for ImageDensitySource
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