MCPcopy Create free account
hub / github.com/apache/arrow-rs / checked_abs

Method checked_abs

arrow-buffer/src/bigint/mod.rs:333–335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

331 /// Computes the absolute value of this i256 returning `None` if `Self == Self::MIN`
332 #[inline]
333 pub fn checked_abs(self) -> Option<Self> {
334 (self != Self::MIN).then(|| self.wrapping_abs())
335 }
336
337 /// Negates this i256
338 #[inline]

Callers

nothing calls this directly

Calls 1

wrapping_absMethod · 0.45

Tested by

no test coverage detected