summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-10-28 09:44:32 +0000
committerJohn Turner <jturner.usa@gmail.com>2025-10-28 09:47:41 +0000
commitb54616a6dd4f512b4ec87c3780c36257e5c322b3 (patch)
tree9467d9a2292b0e3ca3587c895e158a1cc372787d /src/lib.rs
parent92a8e46082a4a3f252cc5fa5afb59716d0657254 (diff)
downloadgentoo-utils-b54616a6dd4f512b4ec87c3780c36257e5c322b3.tar.gz
impl Parseable trait
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 4a1364e..d986f3e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,14 @@
#![deny(clippy::pedantic)]
#![allow(dead_code, unstable_name_collisions)]
+#![feature(impl_trait_in_assoc_type)]
+
+use mon::{Parser, input::Input};
+
+pub trait Parseable<'a, I: Input + 'a> {
+ type Parser: Parser<I, Output = Self>;
+
+ fn parser() -> Self::Parser;
+}
pub mod atom;
pub mod depend;