3 ms·
Having documents like this is awesome - thanks for building it. Is there somewhere I can PR? One example - the `new` constructor takes no arguments, so at mini
by staticassertion 6y ago
Having documents like this is awesome - thanks for building it.
Is there somewhere I can PR? One example - the `new` constructor takes no arguments, so at minimum there should be a note about the (mentioned-next) Default pattern.
Also, I don't think Default is most useful for abstracting construction (I think closures are better for this), they're really just to make construction easier imo ie:
Foo {
prop: override_default,
...Default::default(),
}
edit: It's hosted on github, duh, nvm