Torbjørn Birch Moltu
Torbjørn Birch Moltu
I found a copy of it: https://github.com/yzytom/gordboy-rtl8812au
This could be implemented without allocating for the N entries by having an iterator that produce the keys that future `insert()`s will use. It wouldn't be completely foolproof as removing...
Yes, after removing something then one will *always* get the wrong key, so any bug, if not immediately discovered, will at least be easy to reproduce. I could add an...
Making them less safe can now be done by using `std::hint::unreachable_unchecked()`, but that requires Rust 1.27. Currently [the compiler isn't inserting any trap (`ud2`) instructions either](https://play.rust-lang.org/?version=stable&mode=release&edition=2018&code=use%20std%3A%3Ahint%3A%3Aunreachable_unchecked%3B%0A%0A%23%5Binline(never)%5D%0Apub%20fn%20unchecked_unwrap_result(r%3A%20Result%3CString%2CBox%3CString%3E%3E)%20-%3E%20String%20%7B%0A%20%20%20%20match%20r%20%7B%0A%20%20%20%20%20%20%20%20Ok(s)%20%3D%3E%20s%2C%0A%20%20%20%20%20%20%20%20_%20%3D%3E%20unsafe%20%7B%20unreachable_unchecked()%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20unchecked_unwrap_result(Ok(String%3A%3Afrom(%22Hello%20world%22))))%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20unchecked_unwrap_result(Err(Box%3A%3Anew(String%3A%3Afrom(%22Hello%20UB%22)))))%3B%0A%7D). EDIT: I have [a...
:disappointed: There is no way around building it myself then. ¯\\\_(ツ)\_/¯ Could you document this in the readme?
Is there any work in progress here or can I work on this?
What should be done with methods with "str" in the name? It can refer both to ASCII str and UTF-8 `str`, but specifying breaks the API, and we might want...
Many methods can, but it's not yet possible to convert from other types, and without those, making other methods const doesn't seem all that useful. Creating `AsciiChar` from `u8` or...
Most `AsciiChar` methods has been made `const fn` with version 1.0.0. I figured out that a `const fn` `AsciiChar::new()` was possible by indexing into a constant array. For `AsciiStr` and...
`AsciiStr::new()` was removed so that it can be added back as a `const fn` when possible without any backwards compatibility restrictions. So if that's possible now then feel free to...