aboutsummaryrefslogtreecommitdiff
path: root/stockton-levels/src/features.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:20 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:20 +0100
commit51168c753286eeee64410ab19dc9f78a4ea479e4 (patch)
treed384093c6fd11b36b189013b663f3500b18ec2a4 /stockton-levels/src/features.rs
parentd076d3a6fd484e298915cd85609ba9706abacc87 (diff)
refactor(all): use new traits-based levels everywhere else.
unfortunately this also starts using an unstable feature - generic_associated_types see rust-lang/rust#44265
Diffstat (limited to 'stockton-levels/src/features.rs')
-rw-r--r--stockton-levels/src/features.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/stockton-levels/src/features.rs b/stockton-levels/src/features.rs
new file mode 100644
index 0000000..3f53308
--- /dev/null
+++ b/stockton-levels/src/features.rs
@@ -0,0 +1,21 @@
+// Copyright (C) Oscar Shrimpton 2019
+
+// This program is free software: you can redistribute it and/or modify it
+// under the terms of the GNU General Public License as published by the Free
+// Software Foundation, either version 3 of the License, or (at your option)
+// any later version.
+
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+// more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this program. If not, see <http://www.gnu.org/licenses/>.
+//! Marker traits for different feature sets
+
+use crate::traits::*;
+
+pub trait MinBSPFeatures: HasBSPTree {}
+impl<T> MinBSPFeatures for T
+ where T: HasBSPTree {} \ No newline at end of file