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
impl Var for AnyVar
impl Var for PP_Var
impl Var for StringVar
impl<'a> Var for &'a StringVar
impl Var for Box<StringVar>
impl Var for ObjectVar
impl<'a> Var for &'a ObjectVar
impl Var for Box<ObjectVar>
impl Var for ArrayVar
impl<'a> Var for &'a ArrayVar
impl Var for Box<ArrayVar>
impl Var for DictionaryVar
impl<'a> Var for &'a DictionaryVar
impl Var for Box<DictionaryVar>
impl Var for ArrayBufferVar
impl<'a> Var for &'a ArrayBufferVar
impl Var for Box<ArrayBufferVar>
impl Var for NullVar
impl<'a> Var for &'a NullVar
impl Var for Box<NullVar>
impl Var for UndefinedVar
impl<'a> Var for &'a UndefinedVar
impl Var for Box<UndefinedVar>
impl Var for bool
impl<'a> Var for &'a bool
impl Var for Box<bool>
impl Var for i32
impl<'a> Var for &'a i32
impl Var for Box<i32>
impl Var for f64
impl<'a> Var for &'a f64
impl Var for Box<f64>
impl<'a> Var for &'a str
impl Var for String
impl<'a, T: ToVar> Var for &'a [T]
impl<T: ToVar + Clone> Var for Vec<T>