MCPcopy Create free account
hub / github.com/apache/datafusion / dec

Method dec

datafusion/expr/src/logical_plan/plan.rs:4721–4728  ·  view source on GitHub ↗

Decrements the counter by 1, if any, returning true if it hits zero

(&mut self)

Source from the content-addressed store, hash-verified

4719 }
4720 // Decrements the counter by 1, if any, returning true if it hits zero
4721 fn dec(&mut self) -> bool {
4722 if Some(0) == self.val {
4723 true
4724 } else {
4725 self.val = self.val.take().map(|i| i - 1);
4726 false
4727 }
4728 }
4729 }
4730
4731 #[derive(Debug, Default)]

Callers 2

f_downMethod · 0.80
f_upMethod · 0.80

Calls 2

mapMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected