Type Definition weedle::Definitions[][src]

type Definitions<'a> = Vec<Definition<'a>>;

Parses WebIDL definitions. It is the root struct for a complete WebIDL definition.

Example

use weedle::{Definitions, CompleteStr, Parse};

let (_, parsed) = Definitions::parse(CompleteStr("
    interface Window {
        readonly attribute Storage sessionStorage;
    };
")).unwrap();

println!("{:?}", parsed);

It is recommended to use parse instead.