MCPcopy Create free account
hub / github.com/IntegralPilot/rustc_codegen_jvm / update_state

Function update_state

tests/binary/traits/src/main.rs:80–82  ·  view source on GitHub ↗

Takes a mutable trait object reference

(calc: &mut dyn Calculator, val: i32)

Source from the content-addressed store, hash-verified

78impl DynSource for I32Source {
79 type Item = i32;
80
81 fn next_value(&mut self) -> Option<Self::Item> {
82 let value = self.next;
83 self.next += 1;
84 Some(value)
85 }

Callers 1

mainFunction · 0.85

Calls 1

accumulateMethod · 0.80

Tested by

no test coverage detected