Currently all trait methods are not usable in const contexts. Since zero is also the default value of all number types, this can be useful as a replacement for Default::default() in const contexts.
PS: Is there a reason that none of the traits provide constant versions of their values?
Currently all trait methods are not usable in const contexts. Since zero is also the default value of all number types, this can be useful as a replacement for
Default::default()
in const contexts.PS: Is there a reason that none of the traits provide constant versions of their values?