aboutsummaryrefslogtreecommitdiff
path: root/src/server/cmd/extendable.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-17 10:16:42 +0000
committerFuwn <[email protected]>2021-05-17 10:16:42 +0000
commit1b482ab22031ab9a895b2567ba10a2e553752303 (patch)
treedb4874c46b25655ba7c94b0ab435fdb0d681af55 /src/server/cmd/extendable.rs
parentrefactor(global): whirl_config modulized (diff)
downloadwhirl-1b482ab22031ab9a895b2567ba10a2e553752303.tar.xz
whirl-1b482ab22031ab9a895b2567ba10a2e553752303.zip
refactor(global): even more modules becoming crates
I did multiple checks and **yes**, everything still works perfectly fine.
Diffstat (limited to 'src/server/cmd/extendable.rs')
-rw-r--r--src/server/cmd/extendable.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/server/cmd/extendable.rs b/src/server/cmd/extendable.rs
deleted file mode 100644
index e6f3c2b..0000000
--- a/src/server/cmd/extendable.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
-// SPDX-License-Identifier: GPL-3.0-only
-
-pub trait Parsable {
- fn parse(data: Vec<u8>) -> Self;
-}
-
-pub trait Creatable {
- fn create(self) -> Vec<u8>;
-}
-
-/// Having to do this makes me with there was operator overloading in Rust.
-///
-/// I *could* do this with a macro but since Text is the only struct that
-/// implements this trait, it shouldn't be that big of a deal.
-pub trait ParsableWithArguments {
- fn parse(data: Vec<u8>, args: &[&str]) -> Self;
-}