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

Method push_in_cap

src/lib.rs:277–282  ·  view source on GitHub ↗
(&mut self, val: T)

Source from the content-addressed store, hash-verified

275 #[track_caller]
276 #[inline(always)]
277 fn push_in_cap(&mut self, val: T) {
278 debug_assert!(self.capacity() != self.len());
279 if self.capacity() != self.len() {
280 self.push(val);
281 }
282 }
283}
284
285/// Rust is too conservative about sorting floats.

Callers 2

newMethod · 0.80
add_fixed_colorMethod · 0.80

Calls 2

pushMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected