MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / as_slice

Method as_slice

src/pal.rs:254–256  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

252
253 #[inline(always)]
254 pub fn as_slice(&self) -> &[f_pixel] {
255 &self.colors
256 }
257
258 #[inline(always)]
259 pub fn pop_as_slice(&self) -> &[PalPop] {

Callers 15

paletteMethod · 0.45
sort_paletteFunction · 0.45
newMethod · 0.45
searchMethod · 0.45
vp_create_nodeFunction · 0.45
for_pixelsMethod · 0.45
row_rgbaMethod · 0.45
rgba_rows_iterMethod · 0.45
set_memory_ownershipMethod · 0.45
update_dither_mapMethod · 0.45

Calls

no outgoing calls

Tested by 1

pal_testFunction · 0.36