Replace into_inner() with into() for nutype domain types #245
Labels
No labels
adr
automated
bug
chore
dependencies
documentation
enhancement
epic
github-actions
P1-high
P2-medium
P3-low
release
research
rust
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jwilger/eventcore#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Currently we call
.into_inner()on nutype domain types when we need the wrapped primitive value. This is verbose and non-idiomatic. Rust'sIntotrait is the standard way to perform type conversions.Changes
.into_inner()is called on nutype typesInto<T>for each nutype domain type (BatchSize, StreamPosition, StreamVersion, etc.).into_inner()calls with.into()Example
Acceptance Criteria
Into<T>implemented for all nutype domain types.into_inner()calls replaced with.into()Migrated from beads issue: eventcore-4i0
Completed in #334 — added Into derives and domain operations to nutype types.