Skip to content

Conversation

@dhedey
Copy link
Owner

@dhedey dhedey commented Dec 16, 2025

This will allow e.g. a Shared<u32> to be inter-convertible with a Shared<Value> which isn't possible at the moment.

dhedey and others added 30 commits December 15, 2025 23:35
feat: Partial completion of float migration
Extracted a new `impl_value_content_traits` macro that deduplicates
the IsValueContent/IntoValueContent/FromValueContent implementations
across `define_leaf_type`, `define_parent_type`, and `define_dyn_type`.

The macro generates all form variants for each type kind:
- `leaf:` - implements for X, &X, &mut X, plus BeMutable, BeShared,
  BeAnyRef, BeAnyMut, BeReferenceable wrappers
- `parent:` - implements generic impl for $content<'a, F>
- `dyn:` - implements for Box<D>, &D, &mut D, plus BeMutable, BeShared,
  BeAnyRef, BeAnyMut wrappers (BeReferenceable doesn't work for unsized)

This refactoring deduplicates existing code and adds previously missing
form implementations.
dhedey added 30 commits January 7, 2026 21:51
…-AwpIO

refactor: Extract impl_value_content_traits sub-macro
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