summary refs log blame commit diff stats
path: root/src/lib.rs
blob: 9e84de1b32166acc152979bef36d92c3e953aa91 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                                    
pub mod errors;
mod parser;
mod pattern;
mod vm;

pub use pattern::Pattern;

// TODO
pub trait PatternTypes {
    /// The value type.
    type Value;
    type Iter;
}

// TODO
pub type Predicate<T> = dyn (Fn(&<T as PatternTypes>::Value) -> bool) + Send + Sync;