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

Method checked_sub

arrow-buffer/src/interval.rs:177–183  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

175 /// Performs checked subtraction
176 #[inline]
177 pub fn checked_sub(self, other: Self) -> Option<Self> {
178 Some(Self {
179 months: self.months.checked_sub(other.months)?,
180 days: self.days.checked_sub(other.days)?,
181 nanoseconds: self.nanoseconds.checked_sub(other.nanoseconds)?,
182 })
183 }
184
185 /// Performs wrapping multiplication
186 #[inline]

Callers 10

build_with_headerMethod · 0.45
build_limitedMethod · 0.45
next_innerMethod · 0.45
test_skip_rep_levelsFunction · 0.45
put_valueMethod · 0.45
partial_sortFunction · 0.45
size_hintMethod · 0.45
finishMethod · 0.45
nth_backMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_skip_rep_levelsFunction · 0.36