MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / load

Method load

src/sys/prompt.rs:127–133  ·  view source on GitHub ↗

Load

(&mut self, path: &str)

Source from the content-addressed store, hash-verified

125
126 // Load
127 pub fn load(&mut self, path: &str)
128 {
129 if let Ok(ln) = fs::read_to_str(path)
130 {
131 self.items = ln.split('\n').map(|s| s.to_string()).collect();
132 }
133 }
134
135
136 // New

Callers 15

tickFunction · 0.80
last_rtcupdateFunction · 0.80
nwaitFunction · 0.80
memsizeFunction · 0.80
idtinitFunction · 0.80
runFunction · 0.80
initFunction · 0.80
idFunction · 0.80
initFunction · 0.80
initlogFunction · 0.80
initMethod · 0.80
lnstatMethod · 0.80

Calls 2

read_to_strFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected