Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

feat: add From<{int}> trait for Coins, Int, Uint structs#35

Merged
ya7on merged 2 commits intomasterfrom
from_int
Feb 25, 2025
Merged

feat: add From<{int}> trait for Coins, Int, Uint structs#35
ya7on merged 2 commits intomasterfrom
from_int

Conversation

@ya7on
Copy link
Member

@ya7on ya7on commented Feb 25, 2025

Summary of changes:

Implemented more From<_> trait for Coins, Int, Uint structs. It allows to use the following construction Int::from(100500_u32) instead of Int::from(BigInt::from(100500_u32)).

@ya7on ya7on enabled auto-merge February 25, 2025 19:22
@ya7on ya7on added this pull request to the merge queue Feb 25, 2025
@ya7on ya7on removed this pull request from the merge queue due to a manual request Feb 25, 2025
@codecov
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/types/coins.rs 100.00% <100.00%> (ø)
src/types/int.rs 100.00% <100.00%> (ø)
src/types/uint.rs 100.00% <100.00%> (ø)

@ya7on ya7on enabled auto-merge February 25, 2025 19:24
@ya7on ya7on added this pull request to the merge queue Feb 25, 2025
Merged via the queue into master with commit cf3357f Feb 25, 2025
6 checks passed
@ya7on ya7on deleted the from_int branch February 25, 2025 19:25
@github-actions github-actions bot mentioned this pull request Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant