We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tracking rust-lang/rfcs#234
The text was updated successfully, but these errors were encountered:
I have an implementation of this, just needs polish and a rebase...
Sorry, something went wrong.
What is the replacement for serialize::json::List and serialize::json::Object, which currently are both enum variant and types, defined in the same module?
serialize::json::List
serialize::json::Object
pub enum Json { I64(i64), U64(u64), F64(f64), String(String), Boolean(bool), List(List), Object(Object), Null, } pub type List = Vec<Json>; pub type Object = TreeMap<String, Json>;
I use that pattern a lot in Servo:
pub struct QualifiedRule { ... } pub struct AtRule { ... } pub enum Rule { QualifiedRule(QualifiedRule), AtRule(AtRule), }
Assigning P-backcompat-lang, 1.0 milestone.
@SimonSapin indeed I use it a lot too, but hopefully we'll be able to get it back and better in future, when variant is an actual type.
Successfully merging a pull request may close this issue.
Tracking rust-lang/rfcs#234
The text was updated successfully, but these errors were encountered: