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

Method new

crates/vm/src/readline.rs:33–35  ·  view source on GitHub ↗
(helper: H)

Source from the content-addressed store, hash-verified

31
32 impl<H: Helper> Readline<H> {
33 pub const fn new(helper: H) -> Self {
34 Self { helper }
35 }
36
37 pub fn load_history(&mut self, _path: &Path) -> OtherResult<()> {
38 Ok(())

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
SelfFunction · 0.85
SomeClass · 0.50
SimpleClass · 0.50
buildMethod · 0.45

Tested by

no test coverage detected