[RFC] Allow to cast an any pointer to a dynamic value
This is just meant to start the discussion for https://github.com/capnproto/capnproto-rust/issues/565, not be a full implementation yet.
The idea is to allow one to cast an any pointer to a dynamic value. But in order to do that, the caller must provide the type of the value. The part I am not so sure about is whether the function is safe to call, even if the type is wrong.
Codecov Report
Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.
Project coverage is 50.64%. Comparing base (
ab342b3) to head (ae11091). Report is 157 commits behind head on master.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| capnp/src/any_pointer.rs | 0.00% | 9 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #566 +/- ##
==========================================
- Coverage 51.64% 50.64% -1.00%
==========================================
Files 69 70 +1
Lines 33735 32239 -1496
==========================================
- Hits 17422 16328 -1094
+ Misses 16313 15911 -402
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.