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

Method get_credit

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

Get the credit for a specific line.

(&self, line: u64)

Source from the content-addressed store, hash-verified

652
653 /// Get the credit for a specific line.
654 pub fn get_credit(&self, line: u64) -> Option<&Credit> {
655 self.ranges
656 .iter()
657 .find(|r| r.contains(line))
658 .map(|r| &r.credit)
659 }
660
661 /// Get statistics for this file.
662 pub fn stats(&self) -> CreditStats {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected