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
definitions: Vec<Definition>
Trait Implementations
impl Debug for Definitions
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Definitions
[src]
fn eq(&self, __arg_0: &Definitions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Definitions) -> bool
[src]
This method tests for !=
.