Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow-rs
/ checked_div
Method
checked_div
arrow-buffer/src/bigint/mod.rs:495–497 ·
view source on GitHub ↗
(self, other: Self)
Source
from the content-addressed store, hash-verified
493
/// Performs checked division
494
#[inline]
495
pub fn checked_div(self, other: Self) -> Option<Self> {
496
self.div_rem(other).map(|(v, _)| v).ok()
497
}
498
499
/// Performs wrapping remainder
500
#[inline]
Callers
3
checked_ilog
Method · 0.45
checked_ilog10
Method · 0.45
test_ops
Function · 0.45
Calls
1
div_rem
Method · 0.80
Tested by
1
test_ops
Function · 0.36