aboutsummaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2023-03-30 17:39:49 +0100
committerAkshay <[email protected]>2023-03-30 17:39:49 +0100
commitd315cce8e99ec6d96695bea708ae315028f3db66 (patch)
treec4cdf0331788cb1ec742d2dd39d6325d0557f06a /src/utils.rs
init
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils.rs b/src/utils.rs
new file mode 100644
index 0000000..23fff7e
--- /dev/null
+++ b/src/utils.rs
@@ -0,0 +1,7 @@
1
2pub trait FromStaticStr {
3 type Err;
4 fn from_str(s: &'static str) -> Result<Self, Self::Err>
5 where Self: Sized;
6}
7