MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / collect_case

Function collect_case

crates/codegen/src/util.rs:48–50  ·  view source on GitHub ↗
(case: Case, segs: impl Iterator<Item = &'a Identifier>)

Source from the content-addressed store, hash-verified

46}
47
48pub(super) fn collect_case<'a>(case: Case, segs: impl Iterator<Item = &'a Identifier>) -> String {
49 segs.map(|s| s.deref().to_case(case)).join(case.delim())
50}
51
52pub(super) fn print_lines(output: &mut Indenter, lines: &[&str]) {
53 for line in lines {

Callers 6

generate_type_filesMethod · 0.85
type_module_nameFunction · 0.85
print_module_reexportsFunction · 0.85
type_ref_nameFunction · 0.85
generate_type_filesMethod · 0.85
generate_types_fileFunction · 0.85

Calls 4

joinMethod · 0.80
to_caseMethod · 0.80
mapMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…