Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct A {
- }
- struct B {
- }
- impl From<A> for B {
- fn from(a: A) -> Self {
- B { }
- }
- }
- struct C<Inner> {
- inner: Inner,
- }
- impl From<C<A>> for C<B> {
- fn from(c: C<A>) -> Self {
- C { inner: c.inner.into() }
- }
- }
- fn main () {}
Add Comment
Please, Sign In to add comment