Attempt to simplify ZeroCopyFrom #1255
Labels
C-data-infra
Component: provider, datagen, fallback, adapters
S-medium
Size: Less than a week (larger bug fix or enhancement)
T-techdebt
Type: ICU4X code health and tech debt
Currently
ZeroCopyFrom
has the following signature:It's supposed to be implemented on
'static
types.For its original purpose of helping
attach_to_foo_cart()
functions, it makes a lot of sense (this is why it derives fromYokeable
) but there are a couple problems:'static
type doesn't show up in a lot of places, you really need to use a lot of explicit typing and UFCS to make stuff compileIt might be better to do this instead:
If we can make this work with all of the signatures in use. There may be some need of
for<'b> ZCF<'b>
.Discussed a bit with @sffc , I plan to investigate this
The text was updated successfully, but these errors were encountered: