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
Because FromPrimitive is a trait, the function implementing this operation cannot be declared as const as per the current rust definitions.
This implies that using from_primitive(value) inside a const is impossible.
A const implementation can be added in a direct impl during derivation to allow for this behaviour.
The text was updated successfully, but these errors were encountered:
Because
FromPrimitive
is a trait, the function implementing this operation cannot be declared asconst
as per the current rust definitions.This implies that using
from_primitive(value)
inside a const is impossible.A const implementation can be added in a direct
impl
during derivation to allow for this behaviour.The text was updated successfully, but these errors were encountered: