borsh-rs icon indicating copy to clipboard operation
borsh-rs copied to clipboard

blanket implementation of `BorshSchema` for `&T` (where `T: BorshSchema`)

Open dj8yfo opened this issue 7 months ago • 0 comments

for roundtrips being possible Cow<'a, T> should be generally preferred to &'a T, but if only BorshSerialize + BorshSchema are needed, a blanket implementation of BorshSchema shouldn't do any harm...

dj8yfo avatar Jun 28 '24 13:06 dj8yfo