[][src]Struct purrmitive::core::PurrContext

pub struct PurrContext {
    pub w: u32,
    pub h: u32,
    pub scale: f32,
    pub origin_img: Arc<RgbaImage>,
    pub current_img: Arc<RwLock<RgbaImage>>,
    pub rng: SmallRng,
    pub score: f64,
    pub bg: Rgba<u8>,
    pub alpha: u8,
}

Fields

w: u32h: u32scale: f32origin_img: Arc<RgbaImage>current_img: Arc<RwLock<RgbaImage>>rng: SmallRngscore: f64bg: Rgba<u8>alpha: u8

Implementations

impl PurrContext[src]

pub fn new<P: AsRef<Path>>(
    input: P,
    input_size: u32,
    output_size: u32,
    alpha: u8,
    bg: Option<Rgba<u8>>
) -> Self
[src]

Trait Implementations

impl Clone for PurrContext[src]

impl Debug for PurrContext[src]

Auto Trait Implementations

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> SetParameter for 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,