Struct weedle::Definitions [] [src]

pub struct Definitions {
    pub definitions: Vec<Definition>,
}

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.

Fields

Trait Implementations

impl Debug for Definitions
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Definitions
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Parse for Definitions
[src]

Auto Trait Implementations

impl Send for Definitions

impl Sync for Definitions