tx3-tir 0.17.0

Artifacts for the Tx3 Transaction Intermediate Representation (TIR)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod compile;
pub mod encoding;
pub mod model;
pub mod reduce;

pub trait Visitor {
    fn reduce(
        &mut self,
        expr: model::v1beta0::Expression,
    ) -> Result<model::v1beta0::Expression, crate::reduce::Error>;
}

pub trait Node: Sized {
    fn apply<V: Visitor>(self, visitor: &mut V) -> Result<Self, crate::reduce::Error>;
}