MCPcopy Create free account
hub / github.com/csskit/csskit / keyword_to_pascal

Function keyword_to_pascal

crates/csskit_proc_macro/src/generate.rs:14–17  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

12}
13
14pub fn keyword_to_pascal(s: &str) -> String {
15 let pascal = s.to_lowercase().to_pascal_case();
16 if s.starts_with('-') { format!("_{pascal}") } else { pascal }
17}
18
19/// Returns a structural suffix used to disambiguate colliding variant names.
20///

Callers 1

to_variant_nameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected