Yay, first time I'm using `impl Trait` and `AsRef` in one my own functions! I think I understand how both work now, and like super stoked how well the API turns out! https://github.com/datrs/hypercore/blob/master/src/crypto/hash.rs#L77 …
-
Show this thread
-
So as a bit of background here: I needed the input to be generic over `&[Rc<Node>]` and `&[Node]`. Using AsRef turned out to be the perfect fit; so I can prevent having to cast data into weird shapes / implement the function twice. Also, as per usual - Rust's IRC was great!
1 reply 1 retweet 1 likeShow this thread
Put in another 2 hours of work annnnnd... we've implemented all of our API goals for now! This means we can start testing local replication of feeds. Which is the last step before we can start playing with replicating feeds over the network! Yayay, this is working out well :D
10:11 AM - 12 Jun 2018
0 replies
0 retweets
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.