Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
tick
Function · 0.80
last_rtcupdate
Function · 0.80
nwait
Function · 0.80
memsize
Function · 0.80
idtinit
Function · 0.80
run
Function · 0.80
init
Function · 0.80
id
Function · 0.80
init
Function · 0.80
initlog
Function · 0.80
init
Method · 0.80
lnstat
Method · 0.80
Calls
2
read_to_str
Function · 0.85
map
Method · 0.45
Tested by
no test coverage detected