Can rust be readable?
https://github.com/rust-lang/rust/blob/master/src/libstd/col...
You can also look at `mio`, the asynchronous IO library that's popular in Rust:
https://github.com/carllerche/mio/blob/master/src/notify.rs#...
fn search_entry_hashed<'a, K: Eq, V>(table: &'a mut RawTable<K,V>, hash: SafeHash, k: K)
-> Entry<'a, K, V>In plain English:
`search_entry_hashed` is a parametric function. It works in a type safe way on any kind of K and V. It takes as arguments a reference to a mutable hash table, a hash function and a key, and returns an `Entry` object whose precise type depends on the type of the parameters.
You could hardly express that more succinctly. You can't understand it by skimming it, but it is a complex definition.
fn search_entry_hashed<'lifetime, KeyType: Eq, ValueType>
(table: &'lifetime mut RawTable<KeyType, ValueType>, hash: SafeHash, key: KeyType)
-> Entry<'lifetime, KeyType, ValueType>