forked from gentoo-utils/gentoo-utils
impl Parseable trait
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user