Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to implement From for remote type #18

Open
juchiast opened this issue Nov 5, 2024 · 0 comments · May be fixed by #19
Open

Ability to implement From for remote type #18

juchiast opened this issue Nov 5, 2024 · 0 comments · May be fixed by #19

Comments

@juchiast
Copy link

juchiast commented Nov 5, 2024

mod remote {
    pub struct A {}
}

#[derive(Convert)]
#[convert(remote_from = "remote::A")]
struct B { }

Expand into:

impl From<B> for remote::A {
}

Benefit: so that we can have both From and Into conversion between local and remote struct.

@juchiast juchiast linked a pull request Nov 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant