bevy/examples/app
Carter Anderson b6a647cc01 default() shorthand (#4071)
Adds a `default()` shorthand for `Default::default()` ... because life is too short to constantly type `Default::default()`.

```rust
use bevy::prelude::*;

#[derive(Default)]
struct Foo {
  bar: usize,
  baz: usize,
}

// Normally you would do this:
let foo = Foo {
  bar: 10,
  ..Default::default()
};

// But now you can do this:
let foo = Foo {
  bar: 10,
  ..default()
};
```

The examples have been adapted to use `..default()`. I've left internal crates as-is for now because they don't pull in the bevy prelude, and the ergonomics of each case should be considered individually.
2022-03-01 20:52:09 +00:00
..
custom_loop.rs Make get_resource (and friends) infallible (#4047) 2022-02-27 22:37:18 +00:00
drag_and_drop.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
empty.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
empty_defaults.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
headless.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
headless_defaults.rs default() shorthand (#4071) 2022-03-01 20:52:09 +00:00
logs.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
plugin.rs Down with the system! (#2496) 2021-07-27 23:42:36 +00:00
plugin_group.rs Fix doc_markdown lints in examples (#3486) 2021-12-29 17:25:34 +00:00
return_after_run.rs Replace old renderer with new renderer (#3312) 2021-12-14 03:58:23 +00:00
thread_pool_resources.rs Merge AppBuilder into App (#2531) 2021-07-27 20:21:06 +00:00
without_winit.rs Fix crash with disabled winit (#3330) 2021-12-15 00:15:47 +00:00