iregex 0.2.0

Intermediate representation for Regular Expressions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use iregex_automata::Class;

pub trait Boundary<T> {
	type Class: Class<T>;

	fn apply(&self, class: &Self::Class) -> Option<Self::Class>;
}

impl<T> Boundary<T> for () {
	type Class = ();

	fn apply(&self, _class: &Self::Class) -> Option<Self::Class> {
		Some(())
	}
}