estree 0.0.5

A deserializer for the ESTree format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use easter::patt::Patt;
use easter::id::{Id, IdExt};
use unjson::ty::Object;

use id::IntoId;
use result::Result;

pub trait IntoPatt {
    fn into_patt(self) -> Result<Patt<Id>>;
}

impl IntoPatt for Object {
    fn into_patt(self) -> Result<Patt<Id>> {
        self.into_id().map(|id| id.into_patt())
    }
}