Rust Variadic Functions
Rust does not allow function overloading or variadic functions, so a few different options are available to handle different use cases. I will not go into depth about all the options, but I want to show off one of option that I didn’t see in the blog posts I found but instead discovered while working with TcpStreams. The signature for connect() is pub fn connect<A: ToSocketAddrs>(addr: A) -> Result<Self> and it can be called with a variety of arguments, without any explicit conversion:...