diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-10-28 09:44:32 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-10-28 09:47:41 +0000 |
| commit | b54616a6dd4f512b4ec87c3780c36257e5c322b3 (patch) | |
| tree | 9467d9a2292b0e3ca3587c895e158a1cc372787d /src/lib.rs | |
| parent | 92a8e46082a4a3f252cc5fa5afb59716d0657254 (diff) | |
| download | gentoo-utils-b54616a6dd4f512b4ec87c3780c36257e5c322b3.tar.gz | |
impl Parseable trait
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |
