V8Value

Struct V8Value 

Source
pub struct V8Value(/* private fields */);
Expand description

See _cef_v8_value_t for more documentation.

Trait Implementations§

Source§

impl Clone for V8Value

Source§

fn clone(&self) -> V8Value

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConvertParam<*mut _cef_v8_value_t> for &V8Value

Source§

impl ConvertParam<*mut _cef_v8_value_t> for &mut V8Value

Source§

impl ConvertReturnValue<V8Value> for *mut _cef_v8_value_t

Source§

impl From<V8Value> for *mut _cef_v8_value_t

Source§

fn from(value: V8Value) -> Self

Converts to this type from the input type.
Source§

impl ImplV8Value for V8Value

Source§

fn is_valid(&self) -> c_int

See _cef_v8_value_t::is_valid for more documentation.
Source§

fn is_undefined(&self) -> c_int

See _cef_v8_value_t::is_undefined for more documentation.
Source§

fn is_null(&self) -> c_int

See _cef_v8_value_t::is_null for more documentation.
Source§

fn is_bool(&self) -> c_int

See _cef_v8_value_t::is_bool for more documentation.
Source§

fn is_int(&self) -> c_int

See _cef_v8_value_t::is_int for more documentation.
Source§

fn is_uint(&self) -> c_int

See _cef_v8_value_t::is_uint for more documentation.
Source§

fn is_double(&self) -> c_int

See _cef_v8_value_t::is_double for more documentation.
Source§

fn is_date(&self) -> c_int

See _cef_v8_value_t::is_date for more documentation.
Source§

fn is_string(&self) -> c_int

See _cef_v8_value_t::is_string for more documentation.
Source§

fn is_object(&self) -> c_int

See _cef_v8_value_t::is_object for more documentation.
Source§

fn is_array(&self) -> c_int

See _cef_v8_value_t::is_array for more documentation.
Source§

fn is_array_buffer(&self) -> c_int

See _cef_v8_value_t::is_array_buffer for more documentation.
Source§

fn is_function(&self) -> c_int

See _cef_v8_value_t::is_function for more documentation.
Source§

fn is_promise(&self) -> c_int

See _cef_v8_value_t::is_promise for more documentation.
Source§

fn is_same(&self, that: Option<&mut V8Value>) -> c_int

See _cef_v8_value_t::is_same for more documentation.
Source§

fn bool_value(&self) -> c_int

See _cef_v8_value_t::get_bool_value for more documentation.
Source§

fn int_value(&self) -> i32

See _cef_v8_value_t::get_int_value for more documentation.
Source§

fn uint_value(&self) -> u32

See _cef_v8_value_t::get_uint_value for more documentation.
Source§

fn double_value(&self) -> f64

See _cef_v8_value_t::get_double_value for more documentation.
Source§

fn date_value(&self) -> Basetime

See _cef_v8_value_t::get_date_value for more documentation.
Source§

fn string_value(&self) -> CefStringUserfree

See _cef_v8_value_t::get_string_value for more documentation.
Source§

fn is_user_created(&self) -> c_int

See _cef_v8_value_t::is_user_created for more documentation.
Source§

fn has_exception(&self) -> c_int

See _cef_v8_value_t::has_exception for more documentation.
Source§

fn exception(&self) -> Option<V8Exception>

See _cef_v8_value_t::get_exception for more documentation.
Source§

fn clear_exception(&self) -> c_int

See _cef_v8_value_t::clear_exception for more documentation.
Source§

fn will_rethrow_exceptions(&self) -> c_int

See _cef_v8_value_t::will_rethrow_exceptions for more documentation.
Source§

fn set_rethrow_exceptions(&self, rethrow: c_int) -> c_int

See _cef_v8_value_t::set_rethrow_exceptions for more documentation.
Source§

fn has_value_bykey(&self, key: Option<&CefString>) -> c_int

See _cef_v8_value_t::has_value_bykey for more documentation.
Source§

fn has_value_byindex(&self, index: c_int) -> c_int

See _cef_v8_value_t::has_value_byindex for more documentation.
Source§

fn delete_value_bykey(&self, key: Option<&CefString>) -> c_int

See _cef_v8_value_t::delete_value_bykey for more documentation.
Source§

fn delete_value_byindex(&self, index: c_int) -> c_int

See _cef_v8_value_t::delete_value_byindex for more documentation.
Source§

fn value_bykey(&self, key: Option<&CefString>) -> Option<V8Value>

See _cef_v8_value_t::get_value_bykey for more documentation.
Source§

fn value_byindex(&self, index: c_int) -> Option<V8Value>

See _cef_v8_value_t::get_value_byindex for more documentation.
Source§

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.
Source§

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.
Source§

fn set_value_byaccessor( &self, key: Option<&CefString>, attribute: V8Propertyattribute, ) -> c_int

See _cef_v8_value_t::set_value_byaccessor for more documentation.
Source§

fn keys(&self, keys: Option<&mut CefStringList>) -> c_int

See _cef_v8_value_t::get_keys for more documentation.
Source§

fn set_user_data(&self, user_data: Option<&mut BaseRefCounted>) -> c_int

See _cef_v8_value_t::set_user_data for more documentation.
Source§

fn user_data(&self) -> Option<BaseRefCounted>

See _cef_v8_value_t::get_user_data for more documentation.
Source§

fn externally_allocated_memory(&self) -> c_int

Source§

fn adjust_externally_allocated_memory(&self, change_in_bytes: c_int) -> c_int

Source§

fn array_length(&self) -> c_int

See _cef_v8_value_t::get_array_length for more documentation.
Source§

fn array_buffer_release_callback(&self) -> Option<V8ArrayBufferReleaseCallback>

Source§

fn neuter_array_buffer(&self) -> c_int

See _cef_v8_value_t::neuter_array_buffer for more documentation.
Source§

fn array_buffer_byte_length(&self) -> usize

Source§

fn array_buffer_data(&self) -> *mut c_void

See _cef_v8_value_t::get_array_buffer_data for more documentation.
Source§

fn function_name(&self) -> CefStringUserfree

See _cef_v8_value_t::get_function_name for more documentation.
Source§

fn function_handler(&self) -> Option<V8Handler>

See _cef_v8_value_t::get_function_handler for more documentation.
Source§

fn execute_function( &self, object: Option<&mut V8Value>, arguments: Option<&[Option<V8Value>]>, ) -> Option<V8Value>

See _cef_v8_value_t::execute_function for more documentation.
Source§

fn execute_function_with_context( &self, context: Option<&mut V8Context>, object: Option<&mut V8Value>, arguments: Option<&[Option<V8Value>]>, ) -> Option<V8Value>

Source§

fn resolve_promise(&self, arg: Option<&mut V8Value>) -> c_int

See _cef_v8_value_t::resolve_promise for more documentation.
Source§

fn reject_promise(&self, error_msg: Option<&CefString>) -> c_int

See _cef_v8_value_t::reject_promise for more documentation.
Source§

fn get_raw(&self) -> *mut _cef_v8_value_t

Source§

impl Rc for V8Value

Source§

fn as_base(&self) -> &_cef_base_ref_counted_t

Get the reference of cef_base_ref_counted_t.
Source§

unsafe fn add_ref(&self)

Increase the reference count by 1. Read more
Source§

unsafe fn release(&self) -> bool

Decrease reference count by 1 and release the value if the count meets 0. Reuturn True if it is released. Read more
Source§

fn has_one_ref(&self) -> bool

True if the reference count is exactly 1.
Source§

fn has_at_least_one_ref(&self) -> bool

True if the reference count is larger than 0.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T, U> ConvertParam<U> for T
where T: Into<U>,

Source§

fn into_raw(self) -> U

Source§

impl<T, U> ConvertReturnValue<U> for T
where T: Into<U>,

Source§

fn wrap_result(self) -> U

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.