Search results for 'whoa'

Day 1 (Advent of Code 2020)
...find ( | ( a, b ) | a + b == 2020 ) } Whoa. We're still building the whole Vec though - even if we "find" a pair that sums to 2020 early on. Correct! Let's...
Read more
Day 4 (Advent of Code 2020)
...count ( ) ; println ! ( "{} passport records were valid" , num_valid ) ; } Shell session $ cargo run --quiet 194 passport records were valid Whoa, we actually got it right the first time! We always do 😎 Until next...
Read more
Day 2 (Advent of Code 2020)
...RangeInclusive < usize > , } Whoa! Does that work because both u8 and RangeInclusive<usize> implement PartialEq and Debug ? Yup! And they're not implemented by default for all new structs...
Read more
A simple ping library, parsing strings into IPv4 address
...unwrap ( ) ; IcmpSendEcho ( handle, dest, request_data, request_size, request_options, reply_buffer, reply_size, timeout, ) } Whoa. Okay, yeah, we're definitely going to need to come back to that. But for now...
Read more
Surviving Rust async interfaces
...to dependencies Adding color-eyre v0.5.1 to dependencies Cool bear's hot tip Whoa, amos, cool off. Why all the dependencies? What's the matter cool bear? Too fast for...
Read more
Working with strings in Rust
...It does show line numbers in glibc's ".c" sources, because I installed glibc debug symbols recently, for reasons , but yeah, whoa, look at that output. So anyway, silly me...
Read more
Consuming Ethernet frames with the nom crate
...new ) ( i ) } } Whoa, that's a lot of use directives. Get used to those! Let's walk through these: Addr::parse is a parser - it takes an input and returns an IResult...
Read more
Declarative memory management
...But all good things come to an end (whoa, déjà vu anyone?), and, under new management, Robin is asked for one last change. This change would make the style guide checker into...
Read more
Frustrated? It's not you, it's Rust
...Add < Output = T > , { a + b } Cool bear's hot tip Whoa hey, that escalated quickly. What's all that syntax? Don't worry about it for now. Now that we...
Read more
Aiming for correctness with types
...Oh whoa, RFC 3779 talks about that - it's an "abbreviated prefix". So 127.1 should work? Shell session $ ping 127.1 PING 127.1 (127.0.0.1) 56...
Read more
Done scrolling? Go back to the homepage.