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

Method human_ranges

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

Get all ranges that are purely human.

(&self)

Source from the content-addressed store, hash-verified

689
690 /// Get all ranges that are purely human.
691 pub fn human_ranges(&self) -> Vec<&CreditRange> {
692 self.ranges
693 .iter()
694 .filter(|r| r.credit.credit_type.is_human())
695 .collect()
696 }
697
698 /// Iterate over all lines with their credits.
699 pub fn iter_lines(&self) -> impl Iterator<Item = (u64, &Credit)> {

Callers

nothing calls this directly

Calls 2

is_humanMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected