MCPcopy Create free account
hub / github.com/argumentcomputer/ix / has_duplicate_level_params

Method has_duplicate_level_params

crates/kernel/src/mode.rs:79–86  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

77
78impl CheckDupLevelParams for Vec<Name> {
79 fn has_duplicate_level_params(&self) -> bool {
80 for (i, p) in self.iter().enumerate() {
81 if self[i + 1..].contains(p) {
82 return true;
83 }
84 }
85 false
86 }
87}
88
89impl CheckDupLevelParams for () {

Callers 2

check_const_memberMethod · 0.80
check_block_bodyMethod · 0.80

Calls 2

iterMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected