pub struct Design { /* private fields */ }Implementations§
Source§impl Design
impl Design
pub fn palette(&self) -> &[NHPaletteItem]
Sourcepub fn load_image(
&mut self,
image: Vec<(u8, u8, u8, u8)>,
dimensions: (usize, usize),
) -> Result<(), String>
pub fn load_image( &mut self, image: Vec<(u8, u8, u8, u8)>, dimensions: (usize, usize), ) -> Result<(), String>
Load the full image
Sourcepub fn load_histogram(
&mut self,
images: Vec<Vec<(u8, u8, u8, u8)>>,
) -> Result<(), String>
pub fn load_histogram( &mut self, images: Vec<Vec<(u8, u8, u8, u8)>>, ) -> Result<(), String>
Load some files into a contained histogram
Sourcepub fn optimize_palette<O>(&mut self, optimizer: O)where
O: Optimizer,
pub fn optimize_palette<O>(&mut self, optimizer: O)where
O: Optimizer,
Load some files into a contained palette
pub fn dimensions(&self) -> (usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Design
impl RefUnwindSafe for Design
impl Send for Design
impl Sync for Design
impl Unpin for Design
impl UnwindSafe for Design
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more