MCPcopy Create free account
hub / github.com/endbasic/endbasic / with_globals

Method with_globals

std/src/lib.rs:334–337  ·  view source on GitHub ↗

Sets a global variable to an initial value.

(mut self, defs: Vec<GlobalDef>)

Source from the content-addressed store, hash-verified

332
333 /// Sets a global variable to an initial value.
334 pub fn with_globals(mut self, defs: Vec<GlobalDef>) -> Self {
335 self.global_defs.extend(defs);
336 self
337 }
338
339 /// Overrides the default hardware-based GPIO pins with the given ones.
340 pub fn with_gpio_pins(mut self, pins: Rc<RefCell<dyn gpio::Pins>>) -> Self {

Callers 1

build_machineMethod · 0.80

Calls

no outgoing calls

Tested by 1

build_machineMethod · 0.64