MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

std/src/gpio/mod.rs:129–131  ·  view source on GitHub ↗

Creates a new clearable for `pins`.

(pins: Rc<RefCell<dyn Pins>>)

Source from the content-addressed store, hash-verified

127impl PinsClearable {
128 /// Creates a new clearable for `pins`.
129 pub(crate) fn new(pins: Rc<RefCell<dyn Pins>>) -> Box<Self> {
130 Box::from(Self { pins })
131 }
132}
133
134impl Clearable for PinsClearable {

Callers

nothing calls this directly

Calls 5

with_descriptionMethod · 0.80
with_categoryMethod · 0.80
with_syntaxMethod · 0.80
with_return_typeMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected