A struct with an acronym in its name (e.g. RayDSL, short for "Descriptor Set Layout") are converted to have _ between each uppercase letter (RAY_D_S_L instead of RAY_DSL).
Rust style guide:
In snake_case or SCREAMING_SNAKE_CASE, a "word" should never consist of a single letter unless it is the last "word".
Although the style guide says that acronyms in UpperCamelCase should be counted as words (e.g. RayDsl) I think that is horrible looking because it is an acronym! Treating it like a normal word loses that semantic and can instead be confused for an abbreviation.
A struct with an acronym in its name (e.g.
RayDSL, short for "Descriptor Set Layout") are converted to have_between each uppercase letter (RAY_D_S_Linstead ofRAY_DSL).Rust style guide:
Although the style guide says that acronyms in
UpperCamelCaseshould be counted as words (e.g.RayDsl) I think that is horrible looking because it is an acronym! Treating it like a normal word loses that semantic and can instead be confused for an abbreviation.