Search results for 'whoa'
Day 1 (Advent of Code 2020)
Read more
...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...
Day 4 (Advent of Code 2020)
Read more
...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...
Day 2 (Advent of Code 2020)
Read more
...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...
A simple ping library, parsing strings into IPv4 address
Read more
...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...
Surviving Rust async interfaces
Read more
...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...
Working with strings in Rust
Read more
...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...
Consuming Ethernet frames with the nom crate
Read more
...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...
Declarative memory management
Read more
...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...
Frustrated? It's not you, it's Rust
Read more
...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...
Aiming for correctness with types
Read more
...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...
Done scrolling? Go back to the homepage.