Mingun

Results 397 comments of Mingun

Why you try to flatten fields that are effectively `Box` (because of `transparent`)? Of course this will not work, because string has no internal structure. Your struct equivalent to this:...

I misprinted. `#[serde(trasparent])` means that structure with one field will be serialized as only field. Actually, you can see this code after expanding macros: ```rust #[derive(serde::Deserialize)] #[serde(transparent)] struct First {...

You just need to remove `#[serde(flatten)]`

Just to remind: private inheritance solves problem with inheritance. You cannot use private subclass instead of base class: https://godbolt.org/z/szxbbxac8

> Wouldn't that just take us back to not having any of the functionality exposed? Ah, yes. That will be a problem

I actually found answers for some my questions myself during understanding the `indexes.json`, but that would be nice to have them answered on visualization pages: "BMP coverage" pages (such as...

I think no. At least for me it is still unclear. For example, percent-decoding algorithm is also useful for URL parsing, but that does not explain, why URL can be...

> The respective encodings don't have a defined encoder Well, that's a recursive explanation. _Why_ they don't have a defined encoder? Why did someone decide that if we could not...

Well, probably that information should be included somewhere in the spec, probably here https://github.com/whatwg/encoding/blob/4f549cd26fd5f6a8f8bd8fc3fede519515cdea4f/encoding.bs#L959-L961 because it was a little surprising when I used `indexes.json` for my own goals

Good old `match` should help you: you can get an inspiration from how `DeEvent` is getted: https://github.com/tafia/quick-xml/blob/11e483a9e950eafb30e358b601fa5af16e7af08d/src/de/mod.rs#L927-L949 ```rust fn read_event( reader: &'a mut Reader, buf: &'b mut Vec, ) ->...