[][src]Enum pxsort::Heuristic

pub enum Heuristic {
    Luma,
    Brightness,
    Max,
    Min,
    Chroma,
    Hue,
    Saturation,
    Value,
    Red,
    Blue,
    Green,
    // some variants omitted
}

Basis to use for sorting individual pixels.

Variants

LumaBrightnessMaxMinChromaHueSaturationValueRedBlueGreen

Methods

impl Heuristic[src]

pub fn func(&self) -> Box<dyn Fn(&Rgba<u8>) -> u8>[src]

Get the key extraction function for this heuristic.

Trait Implementations

impl From<Heuristic> for &'static str[src]

impl<'_derivative_strum> From<&'_derivative_strum Heuristic> for &'static str[src]

impl FromStr for Heuristic[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl IntoEnumIterator for Heuristic[src]

type Iterator = HeuristicIter

Auto Trait Implementations

impl Send for Heuristic

impl Sync for Heuristic

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.