Implement methods for Foo
and ArchivedFoo
in a single impl
block.
```rust use rkyv::Archive; use rkyv_impl::*; use std::iter::Sum;
struct Foo
implT
is replaced with T::Archived
in the generated impl
.
#[archivemethod(transformbounds(T))]
fn sum(&self) -> S
where
T: Clone,
S: Sum
fn usegeneratedmethod(foo: &ArchivedFoo
License: MIT/Apache-2.0