Type Alias SampleMethod

Source
pub type SampleMethod<'a> = GenericSampleMethod<ImageSource<'a>>;

Aliased Type§

pub enum SampleMethod<'a> {
    All,
    Ignore,
    Image(ImageSource<'a>),
}

Variants§

§

All

All pixels in the example image can be sampled.

§

Ignore

No pixels in the example image will be sampled.

§

Image(ImageSource<'a>)

Pixels are selectively sampled based on an image.

Trait Implementations§

Source§

impl<'a, IS> From<IS> for SampleMethod<'a>
where IS: Into<ImageSource<'a>>,

Source§

fn from(is: IS) -> Self

Converts to this type from the input type.