Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_works
Function · 0.85
match_with_catchall_order
Function · 0.85
fmt_can_add_doc_comments_with_empty_lines
Function · 0.85
Calls
3
collect
Method · 0.80
split
Method · 0.80
map
Method · 0.45
Tested by
3
adding_arms_works
Function · 0.68
match_with_catchall_order
Function · 0.68
fmt_can_add_doc_comments_with_empty_lines
Function · 0.68