MCPcopy Create free account
hub / github.com/chc4/lineiform / add_one

Method add_one

tangle/src/time.rs:80–83  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

78
79impl StepLite for Timestamp {
80 fn add_one(&self) -> Self {
81 if self.minor == u16::MAX { let mut new = self.increment(); new.minor = u16::MIN; new }
82 else { self.push() }
83 }
84
85 fn sub_one(&self) -> Self {
86 if self.minor == u16::MIN { let mut new = self.decrement(); new.minor = u16::MAX; new }

Callers

nothing calls this directly

Calls 2

incrementMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected