libslide 0.0.1

Library for slide, a static expression optimizer.
Documentation
1
2
3
4
5
6
7
use super::Grammar;

/// A trait for transforming one grammar into another.
/// This transformer takes ownership of the grammar it transforms.
pub trait Transformer<T: Grammar, U: Grammar> {
    fn transform(&self, item: T) -> U;
}