fastn-type 0.1.1

fastn: Full-stack Web Development Made Easy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use fastn_type::evalexpr::ExprNode;
use std::fmt::{Display, Error, Formatter};

impl Display for ExprNode {
    fn fmt(&self, f: &mut Formatter) -> Result<(), Error> {
        self.operator.fmt(f)?;
        for child in self.children() {
            write!(f, " {}", child)?;
        }
        Ok(())
    }
}