[][src]Type Definition weedle::Definitions

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

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

Example

use weedle::{Definitions, Parse};

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

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

It is recommended to use parse instead.