[][src]Struct pix::el::Pix1

#[repr(C)]pub struct Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
{ /* fields omitted */ }

Pixel with one channel in its color model.

Methods

impl<C, M, A, G> Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

pub fn new<H>(one: H) -> Self where
    C: From<H>, 
[src]

Create a one-channel color.

Example

let opaque_gray = Gray8::new(128);

Trait Implementations

impl<C: Clone, M: Clone, A: Clone, G: Clone> Clone for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

impl<C: Copy, M: Copy, A: Copy, G: Copy> Copy for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

impl<C: Debug, M: Debug, A: Debug, G: Debug> Debug for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

impl<C: Default, M: Default, A: Default, G: Default> Default for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

impl<C, M, A, G> From<i32> for Pix1<C, M, A, G> where
    C: Channel + From<Ch16>,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

fn from(c: i32) -> Self[src]

Convert from a u16 value.

impl<C, M, A, G> From<u8> for Pix1<C, M, A, G> where
    C: Channel + From<Ch8>,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

fn from(c: u8) -> Self[src]

Convert from a u8 value.

impl<C, M, A, G> Iterator for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

type Item = Self

The type of the elements being iterated over.

impl<C: PartialEq, M: PartialEq, A: PartialEq, G: PartialEq> PartialEq<Pix1<C, M, A, G>> for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

impl<C, M, A, G> Pixel for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

type Chan = C

Channel type

type Model = M

Color model

type Alpha = A

Alpha mode

type Gamma = G

Gamma mode

impl<C, M, A, G> StructuralPartialEq for Pix1<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Mode,
    G: Mode
[src]

Auto Trait Implementations

impl<C, M, A, G> RefUnwindSafe for Pix1<C, M, A, G> where
    A: RefUnwindSafe,
    C: RefUnwindSafe,
    G: RefUnwindSafe,
    M: RefUnwindSafe

impl<C, M, A, G> Send for Pix1<C, M, A, G> where
    A: Send,
    C: Send,
    G: Send,
    M: Send

impl<C, M, A, G> Sync for Pix1<C, M, A, G> where
    A: Sync,
    C: Sync,
    G: Sync,
    M: Sync

impl<C, M, A, G> Unpin for Pix1<C, M, A, G> where
    A: Unpin,
    C: Unpin,
    G: Unpin,
    M: Unpin

impl<C, M, A, G> UnwindSafe for Pix1<C, M, A, G> where
    A: UnwindSafe,
    C: UnwindSafe,
    G: UnwindSafe,
    M: UnwindSafe

Blanket Implementations

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

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

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

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.