MCPcopy Create free account
hub / github.com/bytecodealliance/wit-bindgen / print_docs

Function print_docs

crates/moonbit/src/lib.rs:3149–3156  ·  view source on GitHub ↗
(src: &mut String, docs: &Docs)

Source from the content-addressed store, hash-verified

3147}
3148
3149fn print_docs(src: &mut String, docs: &Docs) {
3150 uwrite!(src, "///|");
3151 if let Some(docs) = &docs.contents {
3152 for line in docs.trim().lines() {
3153 uwrite!(src, "\n/// {line}");
3154 }
3155 }
3156}

Callers 7

importMethod · 0.85
exportMethod · 0.85
type_recordMethod · 0.85
type_resourceMethod · 0.85
type_flagsMethod · 0.85
type_variantMethod · 0.85
type_enumMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected