This still allows for custom implementations of that trait method, and allows making the private_new function private, thus allowing to drop the prefix. Also slightly cleaner. Added comments as well explaining what those do.
(FYI: the body of the method is unchanged, this is just code motion.)
This still allows for custom implementations of that trait method, and allows making the
private_new
function private, thus allowing to drop the prefix. Also slightly cleaner. Added comments as well explaining what those do.(FYI: the body of the method is unchanged, this is just code motion.)