From b54616a6dd4f512b4ec87c3780c36257e5c322b3 Mon Sep 17 00:00:00 2001 From: John Turner Date: Tue, 28 Oct 2025 09:44:32 +0000 Subject: impl Parseable trait --- src/lib.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib.rs') 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; + + fn parser() -> Self::Parser; +} pub mod atom; pub mod depend; -- cgit v1.2.3