Skip to content

Conversation

@ElijahVlasov
Copy link
Collaborator

The trait combines all FromWithConfig<u*> and FromWithConfig<i*> into one umbrella trait. Handy when one needs conversion functions for different primitive int types.

The canonical blanket implementation is provided as well.

@ElijahVlasov ElijahVlasov marked this pull request as ready for review November 12, 2025 17:41
The trait combines all `FromWithConfig<u*>` and `FromWithConfig<i*>` into one umbrella trait. Handy when one needs conversion functions for different primitive int types.
@ElijahVlasov ElijahVlasov force-pushed the ElijahVlasov/from-primitive-with-config branch from 768abfa to 9266c66 Compare November 12, 2025 17:47
Copy link

@NiDimi NiDimi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I think it makes sense to avoid repeating multiple FromWithConfig bounds. Found a small typo outside the scope.

@ElijahVlasov ElijahVlasov force-pushed the ElijahVlasov/from-primitive-with-config branch from 87d62f0 to 3078802 Compare November 12, 2025 18:12
@ElijahVlasov ElijahVlasov merged commit 3fd2a36 into main Nov 12, 2025
9 checks passed
@ElijahVlasov ElijahVlasov deleted the ElijahVlasov/from-primitive-with-config branch November 12, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants