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

Method to_fixed

src/pal.rs:184–189  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

182
183 #[must_use]
184 pub fn to_fixed(self) -> Self {
185 if self.0 < 0. {
186 return self;
187 }
188 Self(if self.0 > 0. { -self.0 } else { -1. })
189 }
190
191 #[inline]
192 #[cfg_attr(debug_assertions, track_caller)]

Callers 2

newMethod · 0.80
with_fixed_colorsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected