Struct quickjs_runtime::esvalue::EsValueFacade [−][src]
Implementations
impl EsValueFacade
[src]
pub fn as_js_value(
&mut self,
q_ctx: &QuickJsContext
) -> Result<JSValueRef, EsError>
[src]
&mut self,
q_ctx: &QuickJsContext
) -> Result<JSValueRef, EsError>
pub fn from_jsval(
q_ctx: &QuickJsContext,
value_ref: &JSValueRef
) -> Result<Self, EsError>
[src]
q_ctx: &QuickJsContext,
value_ref: &JSValueRef
) -> Result<Self, EsError>
pub fn get_str(&self) -> &str
[src]
get the String value
pub fn get_i32(&self) -> i32
[src]
get the i32 value
pub fn get_f64(&self) -> f64
[src]
get the f64 value
pub fn get_boolean(&self) -> bool
[src]
get the boolean value
pub fn get_array(&self) -> &Vec<EsValueFacade>
[src]
get the array value
pub fn get_array_mut(&mut self) -> &mut Vec<EsValueFacade>
[src]
pub fn get_object(&self) -> &HashMap<String, EsValueFacade>
[src]
get the object value
pub fn get_object_mut(&mut self) -> &mut HashMap<String, EsValueFacade>
[src]
pub fn is_string(&self) -> bool
[src]
check if the value is a String
pub fn is_i32(&self) -> bool
[src]
check if the value is a i32
pub fn is_f64(&self) -> bool
[src]
check if the value is a f64
pub fn is_boolean(&self) -> bool
[src]
check if the value is a bool
pub fn is_object(&self) -> bool
[src]
check if the value is an object
pub fn is_promise(&self) -> bool
[src]
check if the value is a Promise
pub fn is_array(&self) -> bool
[src]
check if the value is an array
pub fn is_function(&self) -> bool
[src]
check if the value is an function
pub fn is_null(&self) -> bool
[src]
pub fn is_undefined(&self) -> bool
[src]
pub fn invoke_function_sync(
&self,
arguments: Vec<EsValueFacade>
) -> Result<EsValueFacade, EsError>
[src]
&self,
arguments: Vec<EsValueFacade>
) -> Result<EsValueFacade, EsError>
pub fn invoke_function(
&self,
arguments: Vec<EsValueFacade>
) -> Result<(), EsError>
[src]
&self,
arguments: Vec<EsValueFacade>
) -> Result<(), EsError>
pub fn invoke_function_batch_sync(
&self,
arguments: Vec<Vec<EsValueFacade>>
) -> Vec<Result<EsValueFacade, EsError>>
[src]
&self,
arguments: Vec<Vec<EsValueFacade>>
) -> Vec<Result<EsValueFacade, EsError>>
pub fn invoke_function_batch(
&self,
arguments: Vec<Vec<EsValueFacade>>
) -> Result<(), EsError>
[src]
&self,
arguments: Vec<Vec<EsValueFacade>>
) -> Result<(), EsError>
pub fn await_promise_blocking(
&self,
timeout: Duration
) -> Result<Result<EsValueFacade, EsValueFacade>, RecvTimeoutError>
[src]
&self,
timeout: Duration
) -> Result<Result<EsValueFacade, EsValueFacade>, RecvTimeoutError>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EsValueFacade
[src]
impl Send for EsValueFacade
[src]
impl !Sync for EsValueFacade
[src]
impl Unpin for EsValueFacade
[src]
impl !UnwindSafe for EsValueFacade
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,