diff options
| author | Jamen Marz <me@jamen.dev> | 2021-09-21 11:25:54 -0600 |
|---|---|---|
| committer | Sébastien Crozet <sebastien@crozet.re> | 2021-09-25 13:50:12 +0200 |
| commit | 7aa94e994f27a27fb193cff9a13b2a3beae09a83 (patch) | |
| tree | c72ad89fbe2a36b72e719f19899a444a8ba1d17c /src/geometry/interaction_graph.rs | |
| parent | 936f655c67f03d6eae6c2c9fc2ad0647b54d74b7 (diff) | |
| download | rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.tar.gz rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.tar.bz2 rapier-7aa94e994f27a27fb193cff9a13b2a3beae09a83.zip | |
Impl Default for a few structs
Diffstat (limited to 'src/geometry/interaction_graph.rs')
| -rw-r--r-- | src/geometry/interaction_graph.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/geometry/interaction_graph.rs b/src/geometry/interaction_graph.rs index e2cc218..b535fa5 100644 --- a/src/geometry/interaction_graph.rs +++ b/src/geometry/interaction_graph.rs @@ -14,6 +14,12 @@ pub struct InteractionGraph<N, E> { pub(crate) graph: Graph<N, E>, } +impl<N: Copy, E> Default for InteractionGraph<N, E> { + fn default() -> Self { + Self::new() + } +} + impl<N: Copy, E> InteractionGraph<N, E> { /// Creates a new empty collection of collision objects. pub fn new() -> Self { |
