Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

Type variance #15

Open
KeenS opened this issue Apr 4, 2017 · 0 comments
Open

Type variance #15

KeenS opened this issue Apr 4, 2017 · 0 comments

Comments

@KeenS
Copy link
Owner

KeenS commented Apr 4, 2017

In client, strings at arguments should be &str and those in return value should be String, and in server, vice versa.

open issue

In server, how to settle the lifetime of return value? fn foo(&self, arg: String) -> &str will inferred to fn foo<'a>(&'a str, arg: String) -> &'a str. Is this correct (usable) ?.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant