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.
More concretely, in the code:
pub(crate) trait Arithmetic: Copy + Sized {
type ModInt: Copy + Sized + Eq; // opaque type
//...
fn to_modint(&self, n: u64) -> Self::ModInt;
}
Is to_modint(...)
the usual idiom, or should it be to_mod_int(...)
, or something else?