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

Method checked_mul

arrow-buffer/src/interval.rs:196–202  ·  view source on GitHub ↗

Performs checked multiplication

(self, other: Self)

Source from the content-addressed store, hash-verified

194
195 /// Performs checked multiplication
196 pub fn checked_mul(self, other: Self) -> Option<Self> {
197 Some(Self {
198 months: self.months.checked_mul(other.months)?,
199 days: self.days.checked_mul(other.days)?,
200 nanoseconds: self.nanoseconds.checked_mul(other.nanoseconds)?,
201 })
202 }
203
204 /// Performs wrapping division
205 #[inline]

Callers 15

encode_rowsMethod · 0.45
encodeMethod · 0.45
cast_with_optionsFunction · 0.45
readMethod · 0.45
resizeMethod · 0.45
try_setMethod · 0.45
unpack_u32_at_offsetMethod · 0.45

Calls

no outgoing calls

Tested by 1