Trait javascriptcore::ValueExt [−][src]
pub trait ValueExt: 'static {
Show 28 methods
fn constructor_callv(&self, parameters: &[Value]) -> Option<Value>;
fn function_callv(&self, parameters: &[Value]) -> Option<Value>;
fn context(&self) -> Option<Context>;
fn is_array(&self) -> bool;
fn is_boolean(&self) -> bool;
fn is_constructor(&self) -> bool;
fn is_function(&self) -> bool;
fn is_null(&self) -> bool;
fn is_number(&self) -> bool;
fn is_object(&self) -> bool;
fn is_string(&self) -> bool;
fn is_undefined(&self) -> bool;
fn object_define_property_data<P: IsA<Value>>(
&self,
property_name: &str,
flags: ValuePropertyFlags,
property_value: Option<&P>
);
fn object_delete_property(&self, name: &str) -> bool;
fn object_enumerate_properties(&self) -> Vec<GString>;
fn object_get_property(&self, name: &str) -> Option<Value>;
fn object_get_property_at_index(&self, index: u32) -> Option<Value>;
fn object_has_property(&self, name: &str) -> bool;
fn object_invoke_methodv(
&self,
name: &str,
parameters: &[Value]
) -> Option<Value>;
fn object_is_instance_of(&self, name: &str) -> bool;
fn object_set_property<P: IsA<Value>>(&self, name: &str, property: &P);
fn object_set_property_at_index<P: IsA<Value>>(
&self,
index: u32,
property: &P
);
fn to_boolean(&self) -> bool;
fn to_double(&self) -> f64;
fn to_int32(&self) -> i32;
fn to_json(&self, indent: u32) -> Option<GString>;
fn to_str(&self) -> GString;
fn to_string_as_bytes(&self) -> Option<Bytes>;
}
Required methods
fn is_boolean(&self) -> bool
fn is_constructor(&self) -> bool
fn is_function(&self) -> bool
fn is_undefined(&self) -> bool
fn object_define_property_data<P: IsA<Value>>(
&self,
property_name: &str,
flags: ValuePropertyFlags,
property_value: Option<&P>
)
fn object_delete_property(&self, name: &str) -> bool
fn object_enumerate_properties(&self) -> Vec<GString>
fn object_get_property(&self, name: &str) -> Option<Value>
fn object_get_property_at_index(&self, index: u32) -> Option<Value>
fn object_has_property(&self, name: &str) -> bool
fn object_is_instance_of(&self, name: &str) -> bool
fn to_boolean(&self) -> bool
This is supported on crate feature
v2_28
only.