borsh-rs
borsh-rs copied to clipboard
blanket implementation of `BorshSchema` for `&T` (where `T: BorshSchema`)
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...