MCPcopy Create free account
hub / github.com/cosdata/cosdata / inc

Method inc

src/models/types.rs:337–339  ·  view source on GitHub ↗

Increments an InternalId by 1 and returns a new instance The caller needs to ensure it doesn't result in overflow

(&self)

Source from the content-addressed store, hash-verified

335 ///
336 /// The caller needs to ensure it doesn't result in overflow
337 pub fn inc(&self) -> Self {
338 InternalId::from(self.0 + 1)
339 }
340}
341
342impl From<u32> for InternalId {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected