Trait ppapi::VarExperimental [-]  [+] [src]

pub trait Var: Clone {
    fn is_null(&self) -> bool { ... }
    fn is_undefined(&self) -> bool { ... }
    fn is_a_bool(&self) -> bool { ... }
    fn is_an_i32(&self) -> bool { ... }
    fn is_a_f64(&self) -> bool { ... }
    fn is_a_string(&self) -> bool { ... }
    fn is_an_object(&self) -> bool { ... }
    fn is_an_array(&self) -> bool { ... }
    fn is_a_dictionary(&self) -> bool { ... }
    fn is_an_array_buffer(&self) -> bool { ... }
    fn is_a_resource(&self) -> bool { ... }
}

by default all functions return false/None so one doesn't have to impl all of them.

Provided Methods

fn is_null(&self) -> bool

fn is_undefined(&self) -> bool

fn is_a_bool(&self) -> bool

fn is_an_i32(&self) -> bool

fn is_a_f64(&self) -> bool

fn is_a_string(&self) -> bool

fn is_an_object(&self) -> bool

fn is_an_array(&self) -> bool

fn is_a_dictionary(&self) -> bool

fn is_an_array_buffer(&self) -> bool

fn is_a_resource(&self) -> bool

Implementors