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

Method rows

src/seacow.rs:135–140  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

133
134impl<T> RowBitmap<'_, T> {
135 pub fn rows(&self) -> impl Iterator<Item = &[T]> {
136 let width = self.width;
137 self.rows.iter().map(move |row| {
138 unsafe { std::slice::from_raw_parts(row.0, width) }
139 })
140 }
141}
142
143enum MutCow<'a, T: ?Sized> {

Callers 1

update_dither_mapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected