What is the commonly used naming convention for to_...() for conversion to a type with a compound name? I can't seem to find any examples or relevant discussion.
If there ain't a clippy rule for it, I'm guessing you could go either way. My vote would be for the latter though. I mean just imagine - SuperAndIdioticallyLongName becomes to_superandidioticallylongname.
Also, I think in the Fuchsia project, for fidlgen, the latter rule is followed to convert camel-case to snake-case.