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

Avoid some call to "xxx".to_string() inside enum like XXXX::String(...) #1

Open
davidB opened this issue Dec 18, 2019 · 0 comments
Open
Labels
enhancement New feature or request sugar

Comments

@davidB
Copy link
Member

davidB commented Dec 18, 2019

There are few Enum with a variant String(String). So when user need it it should call like XXX::String("yyy".to_string()). Supporting &str directly will be a bonus, as:

  • XXX::String("yyy")
  • OR "yyy".into()
@davidB davidB added enhancement New feature or request sugar labels Dec 18, 2019
mockersf referenced this issue Dec 18, 2019
[&str; N], Vec<&str>, Vec<String> -> Enum1::Variant(Vec<Enum2::String(v)>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sugar
Projects
None yet
Development

No branches or pull requests

1 participant