[][src]Struct nhdesigngen::design::Design

pub struct Design { /* fields omitted */ }

Methods

impl Design[src]

pub fn palette(&self) -> &[NHPaletteItem][src]

pub fn load_image(
    &mut self,
    image: Vec<(u8, u8, u8, u8)>,
    dimensions: (usize, usize)
) -> Result<(), String>
[src]

Load the full image

pub fn load_histogram(
    &mut self,
    images: Vec<Vec<(u8, u8, u8, u8)>>
) -> Result<(), String>
[src]

Load some files into a contained histogram

pub fn optimize_palette<O>(&mut self, optimizer: O) where
    O: Optimizer
[src]

Load some files into a contained palette

pub fn dimensions(&self) -> (usize, usize)[src]

pub fn generate<D>(&self, ditherer: D) -> Vec<u8> where
    D: Ditherer
[src]

Generate the indexed design in question

Trait Implementations

impl Default for Design[src]

Auto Trait Implementations

impl RefUnwindSafe for Design

impl Send for Design

impl Sync for Design

impl Unpin for Design

impl UnwindSafe for Design

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, 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.