Add IpHeadersSlice and IpSlice::header()#136
Add IpHeadersSlice and IpSlice::header()#136JulianSchmid merged 1 commit intoJulianSchmid:masterfrom
Conversation
Introduce IpHeadersSlice as an enum over Ipv4HeaderSlice and Ipv6HeaderSlice, with convenience accessors and conversion to IpHeaders. Add IpSlice::header() to expose base IP header slices, export the new net module, and extend tests with unit and proptest coverage for conversion consistency and round-trip invariants.
5ba0b0d to
1f5ef52
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #136 +/- ##
=============================
=============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Introduce IpHeadersSlice as an enum over Ipv4HeaderSlice and Ipv6HeaderSlice, with convenience accessors and conversion to IpHeaders.
Add IpSlice::header() to that returns IpHeadersSlice. Add IpSlice::to_header that returns IpHeaders
Summary by CodeRabbit
New Features
Tests