Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on My least favorite Rust type. Parent comment
I normally just leverage a couple of features: Derive(default) to have an "empty" initialized value and the struct field filling syntax
let x = Foo { field_i_care_about, ..Default::default() };
There are no comments on this comment yet.
I normally just leverage a couple of features: Derive(default) to have an "empty" initialized value and the struct field filling syntax