MCPcopy Create free account
hub / github.com/cretz/stackparam / str_err

Function str_err

src/manip.rs:232–234  ·  view source on GitHub ↗
(res: Result<T, Error>)

Source from the content-addressed store, hash-verified

230}
231
232fn str_err<T>(res: Result<T, Error>) -> Result<T, String> {
233 return res.map_err(|err| format!("{}", err))
234}
235
236fn utf8_const(class_file: &mut Classfile, str: &str) -> usize {
237 for i in 0..class_file.constant_pool.constants.len() {

Callers 2

read_classFunction · 0.85
write_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected