I can nearly create an extract_property(&str) -> &str closure — except that the color property stands out as being parsed as a vector rather than as a string.
Also, I can't figure out how to pass in an "iterator-chain" function as a closure parameter (such as as_str or as_vec).
A macro should be able to do this, though! That'd be so neat.
I can nearly create an
extract_property(&str) -> &str
closure — except that thecolor
property stands out as being parsed as a vector rather than as a string.Also, I can't figure out how to pass in an "iterator-chain" function as a closure parameter (such as
as_str
oras_vec
).A macro should be able to do this, though! That'd be so neat.
Probably slow, but neat.