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

Method checked_add

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

Source from the content-addressed store, hash-verified

155 /// Performs checked addition
156 #[inline]
157 pub fn checked_add(self, other: Self) -> Option<Self> {
158 Some(Self {
159 months: self.months.checked_add(other.months)?,
160 days: self.days.checked_add(other.days)?,
161 nanoseconds: self.nanoseconds.checked_add(other.nanoseconds)?,
162 })
163 }
164
165 /// Performs wrapping subtraction
166 #[inline]

Callers 15

encode_rowsMethod · 0.45
flushMethod · 0.45
checked_row_endMethod · 0.45
read_field_beginMethod · 0.45
from_iterMethod · 0.45
advanceMethod · 0.45
parse_v1_levelFunction · 0.45
next_row_groupMethod · 0.45
try_setMethod · 0.45
unpack_u32_at_offsetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected