MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / add_range

Method add_range

atomic-core/src/change/credit.rs:648–651  ·  view source on GitHub ↗

Add a range of lines with the same credit.

(&mut self, start: u64, end: u64, credit: Credit)

Source from the content-addressed store, hash-verified

646
647 /// Add a range of lines with the same credit.
648 pub fn add_range(&mut self, start: u64, end: u64, credit: Credit) {
649 self.stats_cache = None;
650 self.ranges.push(CreditRange::new(start, end, credit));
651 }
652
653 /// Get the credit for a specific line.
654 pub fn get_credit(&self, line: u64) -> Option<&Credit> {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected