icu4x icon indicating copy to clipboard operation
icu4x copied to clipboard

#[derive(ULE, VarULE)]` could be more useful for simple wrapper types

Open Manishearth opened this issue 1 year ago • 5 comments

In general we nudge people towards #[make_ule] and #[make_varule], but there is a small use case for the direct derives: when you're making a simple wrapper type around an existing ULE or VarULE type.

It would be nice if #[derive(ULE)] could be asked to generate AsULE and ZeroMapKV implementations, and #[derive(VarULE)] could be asked to generate Serialize, Ord (etc), and ZeroMapKV

Manishearth avatar Aug 02 '22 17:08 Manishearth