Struct rasterize::Layer[][src]

pub struct Layer<C> { /* fields omitted */ }

Implementations

impl<C: Default + Copy> Layer<C>[src]

pub fn new(bbox: BBox, color: Option<C>) -> Self[src]

pub fn empty() -> Self[src]

pub fn x(&self) -> i32[src]

pub fn y(&self) -> i32[src]

pub fn translate(self, dx: i32, dy: i32) -> Self[src]

pub fn compose<CF, CO>(&mut self, other: &Layer<CO>, compose: CF) where
    CO: Default + Copy,
    CF: Fn(C, CO) -> C, 
[src]

Trait Implementations

impl<C: Clone> Clone for Layer<C>[src]

impl<C> Debug for Layer<C>[src]

impl<C> Image for Layer<C>[src]

type Pixel = C

Pixel type

impl<C> ImageMut for Layer<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Layer<C> where
    C: RefUnwindSafe

impl<C> Send for Layer<C> where
    C: Send

impl<C> Sync for Layer<C> where
    C: Sync

impl<C> Unpin for Layer<C> where
    C: Unpin

impl<C> UnwindSafe for Layer<C> where
    C: 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<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.