Type Definition weedle::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.