weedle

Type Alias Definitions

Source
pub type Definitions<'a> = Vec<Definition<'a>>;
Expand description

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.

Aliased Type§

struct Definitions<'a> { /* private fields */ }