javascriptcore

Trait ValueExt

Source
pub trait ValueExt:
    IsA<Value>
    + Sealed
    + 'static {
Show 37 methods // Provided methods fn array_buffer_get_size(&self) -> usize { ... } 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_array_buffer(&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_typed_array(&self) -> bool { ... } fn is_undefined(&self) -> bool { ... } fn new_typed_array_with_buffer( &self, type_: TypedArrayType, offset: usize, length: isize, ) -> Option<Value> { ... } fn object_define_property_data( &self, property_name: &str, flags: ValuePropertyFlags, property_value: Option<&impl IsA<Value>>, ) { ... } 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(&self, name: &str, property: &impl IsA<Value>) { ... } fn object_set_property_at_index( &self, index: u32, property: &impl IsA<Value>, ) { ... } 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> { ... } fn typed_array_get_buffer(&self) -> Option<Value> { ... } fn typed_array_get_length(&self) -> usize { ... } fn typed_array_get_offset(&self) -> usize { ... } fn typed_array_get_size(&self) -> usize { ... } fn typed_array_get_type(&self) -> TypedArrayType { ... }
}

Provided Methods§

Source

fn array_buffer_get_size(&self) -> usize

Available on crate feature v2_38 only.
Source

fn constructor_callv(&self, parameters: &[Value]) -> Option<Value>

Source

fn function_callv(&self, parameters: &[Value]) -> Option<Value>

Source

fn context(&self) -> Option<Context>

Source

fn is_array(&self) -> bool

Source

fn is_array_buffer(&self) -> bool

Available on crate feature v2_38 only.
Source

fn is_boolean(&self) -> bool

Source

fn is_constructor(&self) -> bool

Source

fn is_function(&self) -> bool

Source

fn is_null(&self) -> bool

Source

fn is_number(&self) -> bool

Source

fn is_object(&self) -> bool

Source

fn is_string(&self) -> bool

Source

fn is_typed_array(&self) -> bool

Available on crate feature v2_38 only.
Source

fn is_undefined(&self) -> bool

Source

fn new_typed_array_with_buffer( &self, type_: TypedArrayType, offset: usize, length: isize, ) -> Option<Value>

Available on crate feature v2_38 only.
Source

fn object_define_property_data( &self, property_name: &str, flags: ValuePropertyFlags, property_value: Option<&impl IsA<Value>>, )

Source

fn object_delete_property(&self, name: &str) -> bool

Source

fn object_enumerate_properties(&self) -> Vec<GString>

Source

fn object_get_property(&self, name: &str) -> Option<Value>

Source

fn object_get_property_at_index(&self, index: u32) -> Option<Value>

Source

fn object_has_property(&self, name: &str) -> bool

Source

fn object_invoke_methodv( &self, name: &str, parameters: &[Value], ) -> Option<Value>

Source

fn object_is_instance_of(&self, name: &str) -> bool

Source

fn object_set_property(&self, name: &str, property: &impl IsA<Value>)

Source

fn object_set_property_at_index(&self, index: u32, property: &impl IsA<Value>)

Source

fn to_boolean(&self) -> bool

Source

fn to_double(&self) -> f64

Source

fn to_int32(&self) -> i32

Source

fn to_json(&self, indent: u32) -> Option<GString>

Available on crate feature v2_28 only.
Source

fn to_str(&self) -> GString

Source

fn to_string_as_bytes(&self) -> Option<Bytes>

Source

fn typed_array_get_buffer(&self) -> Option<Value>

Available on crate feature v2_38 only.
Source

fn typed_array_get_length(&self) -> usize

Available on crate feature v2_38 only.
Source

fn typed_array_get_offset(&self) -> usize

Available on crate feature v2_38 only.
Source

fn typed_array_get_size(&self) -> usize

Available on crate feature v2_38 only.
Source

fn typed_array_get_type(&self) -> TypedArrayType

Available on crate feature v2_38 only.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<O: IsA<Value>> ValueExt for O