MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / from_raw_string

Function from_raw_string

cranelift/srcgen/src/lib.rs:389–395  ·  view source on GitHub ↗
(s: S)

Source from the content-addressed store, hash-verified

387 use super::parse_multiline;
388
389 fn from_raw_string<S: Into<String>>(s: S) -> Vec<String> {
390 s.into()
391 .trim()
392 .split("\n")
393 .map(|x| format!("{x}\n"))
394 .collect()
395 }
396
397 #[test]
398 fn adding_arms_works() {

Callers 3

adding_arms_worksFunction · 0.85

Calls 3

collectMethod · 0.80
splitMethod · 0.80
mapMethod · 0.45

Tested by 3

adding_arms_worksFunction · 0.68