Show call of default()

pull/93/head
kellerkindt 4 years ago committed by GitHub
parent 41bfd4d482
commit 5ebfc0cdc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,6 +36,12 @@ struct MyConfiguration {
impl MyConfiguration {
// add setters here
}
fn main() {
// construct a new instance with default values
let mut conf = MyConfiguration::default();
// do somthing with conf here
}
```
## See also

Loading…
Cancel
Save