MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / checked_sub

Method checked_sub

src/repr/src/timestamp.rs:325–329  ·  view source on GitHub ↗
(self, rhs: I)

Source from the content-addressed store, hash-verified

323 }
324
325 pub fn checked_sub<I: Into<Self>>(self, rhs: I) -> Option<Self> {
326 self.internal
327 .checked_sub(rhs.into().internal)
328 .map(|internal| Self { internal })
329 }
330
331 /// Advance a timestamp by the least amount possible such that
332 /// `ts.less_than(ts.step_forward())` is true. Panic if unable to do so.

Callers 15

on_splitMethod · 0.45
sub_int16Function · 0.45
sub_int32Function · 0.45
sub_int64Function · 0.45
sub_uint16Function · 0.45
sub_uint32Function · 0.45
sub_uint64Function · 0.45
date_binFunction · 0.45
to_timestampFunction · 0.45
maybe_trim_protoFunction · 0.45
fromMethod · 0.45

Calls 1

mapMethod · 0.45

Tested by 1

test_plan_validityFunction · 0.36