You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Convert LangID from u16 enum to tuple struct containing u16
Relax lang_id checks provided by enum so that any lang_id could be
used, not only values listed in the enum. These checks increased
the code size considerably without much benefit. Resolves#139.
Language identifiers like LangID::EN_US have a new type, but this
should not require source code changes in a code which uses them.
Provide two traits to convert LangID to and from u16 freely. This
implicitly provides TryFrom trait which previously was derived
using TryFromPrimitive.
There's no special constructor for LangID for values outside of
the provided constants, but it can be converted from any u16.
As TryFromPrimitive in no longer used, remove num_enum dependency.
0 commit comments