pub trait ImplV8Value:
Clone
+ Sized
+ Rc {
Show 53 methods
// Required methods
fn is_valid(&self) -> c_int;
fn is_undefined(&self) -> c_int;
fn is_null(&self) -> c_int;
fn is_bool(&self) -> c_int;
fn is_int(&self) -> c_int;
fn is_uint(&self) -> c_int;
fn is_double(&self) -> c_int;
fn is_date(&self) -> c_int;
fn is_string(&self) -> c_int;
fn is_object(&self) -> c_int;
fn is_array(&self) -> c_int;
fn is_array_buffer(&self) -> c_int;
fn is_function(&self) -> c_int;
fn is_promise(&self) -> c_int;
fn is_same(&self, that: Option<&mut V8Value>) -> c_int;
fn bool_value(&self) -> c_int;
fn int_value(&self) -> i32;
fn uint_value(&self) -> u32;
fn double_value(&self) -> f64;
fn date_value(&self) -> Basetime;
fn string_value(&self) -> CefStringUserfree;
fn is_user_created(&self) -> c_int;
fn has_exception(&self) -> c_int;
fn exception(&self) -> Option<V8Exception>;
fn clear_exception(&self) -> c_int;
fn will_rethrow_exceptions(&self) -> c_int;
fn set_rethrow_exceptions(&self, rethrow: c_int) -> c_int;
fn has_value_bykey(&self, key: Option<&CefString>) -> c_int;
fn has_value_byindex(&self, index: c_int) -> c_int;
fn delete_value_bykey(&self, key: Option<&CefString>) -> c_int;
fn delete_value_byindex(&self, index: c_int) -> c_int;
fn value_bykey(&self, key: Option<&CefString>) -> Option<V8Value>;
fn value_byindex(&self, index: c_int) -> Option<V8Value>;
fn set_value_bykey(
&self,
key: Option<&CefString>,
value: Option<&mut V8Value>,
attribute: V8Propertyattribute,
) -> c_int;
fn set_value_byindex(
&self,
index: c_int,
value: Option<&mut V8Value>,
) -> c_int;
fn set_value_byaccessor(
&self,
key: Option<&CefString>,
attribute: V8Propertyattribute,
) -> c_int;
fn keys(&self, keys: Option<&mut CefStringList>) -> c_int;
fn set_user_data(&self, user_data: Option<&mut BaseRefCounted>) -> c_int;
fn user_data(&self) -> Option<BaseRefCounted>;
fn externally_allocated_memory(&self) -> c_int;
fn adjust_externally_allocated_memory(
&self,
change_in_bytes: c_int,
) -> c_int;
fn array_length(&self) -> c_int;
fn array_buffer_release_callback(
&self,
) -> Option<V8ArrayBufferReleaseCallback>;
fn neuter_array_buffer(&self) -> c_int;
fn array_buffer_byte_length(&self) -> usize;
fn array_buffer_data(&self) -> *mut c_void;
fn function_name(&self) -> CefStringUserfree;
fn function_handler(&self) -> Option<V8Handler>;
fn execute_function(
&self,
object: Option<&mut V8Value>,
arguments: Option<&[Option<V8Value>]>,
) -> Option<V8Value>;
fn execute_function_with_context(
&self,
context: Option<&mut V8Context>,
object: Option<&mut V8Value>,
arguments: Option<&[Option<V8Value>]>,
) -> Option<V8Value>;
fn resolve_promise(&self, arg: Option<&mut V8Value>) -> c_int;
fn reject_promise(&self, error_msg: Option<&CefString>) -> c_int;
fn get_raw(&self) -> *mut _cef_v8_value_t;
}Required Methods§
Sourcefn is_valid(&self) -> c_int
fn is_valid(&self) -> c_int
See _cef_v8_value_t::is_valid for more documentation.
Sourcefn is_undefined(&self) -> c_int
fn is_undefined(&self) -> c_int
See _cef_v8_value_t::is_undefined for more documentation.
Sourcefn is_null(&self) -> c_int
fn is_null(&self) -> c_int
See _cef_v8_value_t::is_null for more documentation.
Sourcefn is_bool(&self) -> c_int
fn is_bool(&self) -> c_int
See _cef_v8_value_t::is_bool for more documentation.
Sourcefn is_int(&self) -> c_int
fn is_int(&self) -> c_int
See _cef_v8_value_t::is_int for more documentation.
Sourcefn is_uint(&self) -> c_int
fn is_uint(&self) -> c_int
See _cef_v8_value_t::is_uint for more documentation.
Sourcefn is_double(&self) -> c_int
fn is_double(&self) -> c_int
See _cef_v8_value_t::is_double for more documentation.
Sourcefn is_date(&self) -> c_int
fn is_date(&self) -> c_int
See _cef_v8_value_t::is_date for more documentation.
Sourcefn is_string(&self) -> c_int
fn is_string(&self) -> c_int
See _cef_v8_value_t::is_string for more documentation.
Sourcefn is_object(&self) -> c_int
fn is_object(&self) -> c_int
See _cef_v8_value_t::is_object for more documentation.
Sourcefn is_array(&self) -> c_int
fn is_array(&self) -> c_int
See _cef_v8_value_t::is_array for more documentation.
Sourcefn is_array_buffer(&self) -> c_int
fn is_array_buffer(&self) -> c_int
See _cef_v8_value_t::is_array_buffer for more documentation.
Sourcefn is_function(&self) -> c_int
fn is_function(&self) -> c_int
See _cef_v8_value_t::is_function for more documentation.
Sourcefn is_promise(&self) -> c_int
fn is_promise(&self) -> c_int
See _cef_v8_value_t::is_promise for more documentation.
Sourcefn is_same(&self, that: Option<&mut V8Value>) -> c_int
fn is_same(&self, that: Option<&mut V8Value>) -> c_int
See _cef_v8_value_t::is_same for more documentation.
Sourcefn bool_value(&self) -> c_int
fn bool_value(&self) -> c_int
See _cef_v8_value_t::get_bool_value for more documentation.
Sourcefn int_value(&self) -> i32
fn int_value(&self) -> i32
See _cef_v8_value_t::get_int_value for more documentation.
Sourcefn uint_value(&self) -> u32
fn uint_value(&self) -> u32
See _cef_v8_value_t::get_uint_value for more documentation.
Sourcefn double_value(&self) -> f64
fn double_value(&self) -> f64
See _cef_v8_value_t::get_double_value for more documentation.
Sourcefn date_value(&self) -> Basetime
fn date_value(&self) -> Basetime
See _cef_v8_value_t::get_date_value for more documentation.
Sourcefn string_value(&self) -> CefStringUserfree
fn string_value(&self) -> CefStringUserfree
See _cef_v8_value_t::get_string_value for more documentation.
Sourcefn is_user_created(&self) -> c_int
fn is_user_created(&self) -> c_int
See _cef_v8_value_t::is_user_created for more documentation.
Sourcefn has_exception(&self) -> c_int
fn has_exception(&self) -> c_int
See _cef_v8_value_t::has_exception for more documentation.
Sourcefn exception(&self) -> Option<V8Exception>
fn exception(&self) -> Option<V8Exception>
See _cef_v8_value_t::get_exception for more documentation.
Sourcefn clear_exception(&self) -> c_int
fn clear_exception(&self) -> c_int
See _cef_v8_value_t::clear_exception for more documentation.
Sourcefn will_rethrow_exceptions(&self) -> c_int
fn will_rethrow_exceptions(&self) -> c_int
See _cef_v8_value_t::will_rethrow_exceptions for more documentation.
Sourcefn set_rethrow_exceptions(&self, rethrow: c_int) -> c_int
fn set_rethrow_exceptions(&self, rethrow: c_int) -> c_int
See _cef_v8_value_t::set_rethrow_exceptions for more documentation.
Sourcefn has_value_bykey(&self, key: Option<&CefString>) -> c_int
fn has_value_bykey(&self, key: Option<&CefString>) -> c_int
See _cef_v8_value_t::has_value_bykey for more documentation.
Sourcefn has_value_byindex(&self, index: c_int) -> c_int
fn has_value_byindex(&self, index: c_int) -> c_int
See _cef_v8_value_t::has_value_byindex for more documentation.
Sourcefn delete_value_bykey(&self, key: Option<&CefString>) -> c_int
fn delete_value_bykey(&self, key: Option<&CefString>) -> c_int
See _cef_v8_value_t::delete_value_bykey for more documentation.
Sourcefn delete_value_byindex(&self, index: c_int) -> c_int
fn delete_value_byindex(&self, index: c_int) -> c_int
See _cef_v8_value_t::delete_value_byindex for more documentation.
Sourcefn value_bykey(&self, key: Option<&CefString>) -> Option<V8Value>
fn value_bykey(&self, key: Option<&CefString>) -> Option<V8Value>
See _cef_v8_value_t::get_value_bykey for more documentation.
Sourcefn value_byindex(&self, index: c_int) -> Option<V8Value>
fn value_byindex(&self, index: c_int) -> Option<V8Value>
See _cef_v8_value_t::get_value_byindex for more documentation.
Sourcefn set_value_bykey(
&self,
key: Option<&CefString>,
value: Option<&mut V8Value>,
attribute: V8Propertyattribute,
) -> c_int
fn set_value_bykey( &self, key: Option<&CefString>, value: Option<&mut V8Value>, attribute: V8Propertyattribute, ) -> c_int
See _cef_v8_value_t::set_value_bykey for more documentation.
Sourcefn set_value_byindex(&self, index: c_int, value: Option<&mut V8Value>) -> c_int
fn set_value_byindex(&self, index: c_int, value: Option<&mut V8Value>) -> c_int
See _cef_v8_value_t::set_value_byindex for more documentation.
Sourcefn set_value_byaccessor(
&self,
key: Option<&CefString>,
attribute: V8Propertyattribute,
) -> c_int
fn set_value_byaccessor( &self, key: Option<&CefString>, attribute: V8Propertyattribute, ) -> c_int
See _cef_v8_value_t::set_value_byaccessor for more documentation.
Sourcefn keys(&self, keys: Option<&mut CefStringList>) -> c_int
fn keys(&self, keys: Option<&mut CefStringList>) -> c_int
See _cef_v8_value_t::get_keys for more documentation.
Sourcefn set_user_data(&self, user_data: Option<&mut BaseRefCounted>) -> c_int
fn set_user_data(&self, user_data: Option<&mut BaseRefCounted>) -> c_int
See _cef_v8_value_t::set_user_data for more documentation.
Sourcefn user_data(&self) -> Option<BaseRefCounted>
fn user_data(&self) -> Option<BaseRefCounted>
See _cef_v8_value_t::get_user_data for more documentation.
Sourcefn externally_allocated_memory(&self) -> c_int
fn externally_allocated_memory(&self) -> c_int
See _cef_v8_value_t::get_externally_allocated_memory for more documentation.
Sourcefn adjust_externally_allocated_memory(&self, change_in_bytes: c_int) -> c_int
fn adjust_externally_allocated_memory(&self, change_in_bytes: c_int) -> c_int
See _cef_v8_value_t::adjust_externally_allocated_memory for more documentation.
Sourcefn array_length(&self) -> c_int
fn array_length(&self) -> c_int
See _cef_v8_value_t::get_array_length for more documentation.
Sourcefn array_buffer_release_callback(&self) -> Option<V8ArrayBufferReleaseCallback>
fn array_buffer_release_callback(&self) -> Option<V8ArrayBufferReleaseCallback>
See _cef_v8_value_t::get_array_buffer_release_callback for more documentation.
Sourcefn neuter_array_buffer(&self) -> c_int
fn neuter_array_buffer(&self) -> c_int
See _cef_v8_value_t::neuter_array_buffer for more documentation.
Sourcefn array_buffer_byte_length(&self) -> usize
fn array_buffer_byte_length(&self) -> usize
See _cef_v8_value_t::get_array_buffer_byte_length for more documentation.
Sourcefn array_buffer_data(&self) -> *mut c_void
fn array_buffer_data(&self) -> *mut c_void
See _cef_v8_value_t::get_array_buffer_data for more documentation.
Sourcefn function_name(&self) -> CefStringUserfree
fn function_name(&self) -> CefStringUserfree
See _cef_v8_value_t::get_function_name for more documentation.
Sourcefn function_handler(&self) -> Option<V8Handler>
fn function_handler(&self) -> Option<V8Handler>
See _cef_v8_value_t::get_function_handler for more documentation.
Sourcefn execute_function(
&self,
object: Option<&mut V8Value>,
arguments: Option<&[Option<V8Value>]>,
) -> Option<V8Value>
fn execute_function( &self, object: Option<&mut V8Value>, arguments: Option<&[Option<V8Value>]>, ) -> Option<V8Value>
See _cef_v8_value_t::execute_function for more documentation.
Sourcefn execute_function_with_context(
&self,
context: Option<&mut V8Context>,
object: Option<&mut V8Value>,
arguments: Option<&[Option<V8Value>]>,
) -> Option<V8Value>
fn execute_function_with_context( &self, context: Option<&mut V8Context>, object: Option<&mut V8Value>, arguments: Option<&[Option<V8Value>]>, ) -> Option<V8Value>
See _cef_v8_value_t::execute_function_with_context for more documentation.
Sourcefn resolve_promise(&self, arg: Option<&mut V8Value>) -> c_int
fn resolve_promise(&self, arg: Option<&mut V8Value>) -> c_int
See _cef_v8_value_t::resolve_promise for more documentation.
Sourcefn reject_promise(&self, error_msg: Option<&CefString>) -> c_int
fn reject_promise(&self, error_msg: Option<&CefString>) -> c_int
See _cef_v8_value_t::reject_promise for more documentation.
fn get_raw(&self) -> *mut _cef_v8_value_t
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.