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

Method rustdoc

crates/rust/src/interface.rs:1399–1412  ·  view source on GitHub ↗
(&mut self, docs: &Docs)

Source from the content-addressed store, hash-verified

1397 }
1398
1399 fn rustdoc(&mut self, docs: &Docs) {
1400 let docs = match &docs.contents {
1401 Some(docs) => docs,
1402 None => return,
1403 };
1404 for line in docs.trim().lines() {
1405 self.push_str("///");
1406 if !line.is_empty() {
1407 self.push_str(" ");
1408 self.push_str(line);
1409 }
1410 self.push_str("\n");
1411 }
1412 }
1413
1414 fn rustdoc_params(&mut self, docs: &Vec<Param>, header: &str) {
1415 let _ = (docs, header);

Callers 15

print_docs_and_paramsMethod · 0.80
print_typedef_recordMethod · 0.80
print_rust_enumMethod · 0.80
print_typedef_optionMethod · 0.80
print_typedef_resultMethod · 0.80
print_typedef_enumMethod · 0.80
print_typedef_aliasMethod · 0.80
type_resourceMethod · 0.80
type_tupleMethod · 0.80
type_flagsMethod · 0.80
type_listMethod · 0.80

Calls 2

push_strMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected