Hello everyone asking for this macro: I'm writing some docs right now and will have it published for you in a few hours.
-
-
Prikaži ovu nit
-
Published https://crates.io/crates/bitmatch ! Go look at the docs at https://docs.rs/crate/bitmatch ! Try it out and let me know what you think!
#rustlangpic.twitter.com/JOo6oHMyag
Prikaži ovu nit
Kraj razgovora
Novi razgovor -
-
-
what arch is it?
-
a not-very-practical toy arch I made because encoding tables are fun
- Još 4 druga odgovora
Novi razgovor -
-
-
I love it!! I can't quite tell what happens to the top two bits of x. I suppose "00_0000 iiii_iiii" means the same thing as "??00_0000 iiii_iiii" for that first match in the second block to work. what would happen if you bitpack!("xx_xxxx yyyy_yyyy") (with only 6 x bits)?
-
it would leave the top 2 bits 0, since its all expanding to masks and shifts. I wanted those to all have the leading 1s, since that's what they are, but my exhaustivity checker catches me. Maybe I should special-case bitpack!() in the match condition and trust literals in there…
- Još 3 druga odgovora
Novi razgovor -
-
-
oh my gods this is beautiful, how do I get my hands on this macro
-
coming soon to a cratesio near you
- Još 1 odgovor
Novi razgovor -
-
-
Is this available somewhere?
-
not yet but hopefully later today
- Još 1 odgovor
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
