MCPcopy Create free account
hub / github.com/alignoth/alignoth / clamp

Method clamp

src/cli.rs:193–199  ·  view source on GitHub ↗
(&self, min: i64, max: i64)

Source from the content-addressed store, hash-verified

191
192impl Clamp for Region {
193 fn clamp(&self, min: i64, max: i64) -> Self {
194 Region {
195 target: self.target.clone(),
196 start: cmp::max(self.start, min),
197 end: cmp::min(self.end, max),
198 }
199 }
200}
201
202impl FromStr for Region {

Callers 4

IhFunction · 0.80
pdFunction · 0.80
wizard_modeFunction · 0.80
preprocessMethod · 0.80

Calls 3

maxFunction · 0.85
minFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected