pub struct QuantizationResult {
pub palette: Palette,
pub index_mapping: Vec<u8>,
}Expand description
Result of quantization including the palette and a mapping from the intermediate refinement indices to the final reordered indices.
Fields§
§palette: PaletteThe final generated palette.
index_mapping: Vec<u8>Mapping from intermediate indices to final reordered indices.
Auto Trait Implementations§
impl Freeze for QuantizationResult
impl RefUnwindSafe for QuantizationResult
impl Send for QuantizationResult
impl Sync for QuantizationResult
impl Unpin for QuantizationResult
impl UnwindSafe for QuantizationResult
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