Trait quickjs_rusty::value::ToOwnedJsValue  
source · pub trait ToOwnedJsValue {
    // Required method
    fn to_owned(self, context: *mut JSContext) -> OwnedJsValue;
}Expand description
to avoid infinite recursion, we need to implement a ToOwnedJsValue trait for T,
and then implement the From<(*mut q::JSContext, T)> trait for T and XXX
This trait should not be public, use the From<(*mut q::JSContext, T)> trait outside of this module.
Required Methods§
fn to_owned(self, context: *mut JSContext) -> OwnedJsValue
Implementations on Foreign Types§
source§impl ToOwnedJsValue for &str
 
impl ToOwnedJsValue for &str
source§impl ToOwnedJsValue for bool
 
impl ToOwnedJsValue for bool
source§impl ToOwnedJsValue for f64
 
impl ToOwnedJsValue for f64
source§impl ToOwnedJsValue for i8
 
impl ToOwnedJsValue for i8
source§impl ToOwnedJsValue for i16
 
impl ToOwnedJsValue for i16
source§impl ToOwnedJsValue for i32
 
impl ToOwnedJsValue for i32
source§impl ToOwnedJsValue for i64
 
impl ToOwnedJsValue for i64
source§impl ToOwnedJsValue for i128
 
impl ToOwnedJsValue for i128
source§impl ToOwnedJsValue for u8
 
impl ToOwnedJsValue for u8
source§impl ToOwnedJsValue for u16
 
impl ToOwnedJsValue for u16
source§impl ToOwnedJsValue for u32
 
impl ToOwnedJsValue for u32
source§impl ToOwnedJsValue for u64
 
impl ToOwnedJsValue for u64
source§impl ToOwnedJsValue for u128
 
impl ToOwnedJsValue for u128
source§impl ToOwnedJsValue for String
 
impl ToOwnedJsValue for String
source§impl ToOwnedJsValue for DateTime<Utc>
 
impl ToOwnedJsValue for DateTime<Utc>
source§impl ToOwnedJsValue for BigInt
 
impl ToOwnedJsValue for BigInt
source§impl<K, V> ToOwnedJsValue for HashMap<K, V>
 
impl<K, V> ToOwnedJsValue for HashMap<K, V>
source§impl<T> ToOwnedJsValue for Option<T>where
    T: ToOwnedJsValue,
 
impl<T> ToOwnedJsValue for Option<T>where
    T: ToOwnedJsValue,
source§impl<T> ToOwnedJsValue for &Twhere
    T: ToOwnedJsValue,
 
impl<T> ToOwnedJsValue for &Twhere
    T: ToOwnedJsValue,
source§impl<T> ToOwnedJsValue for Vec<T>where
    T: ToOwnedJsValue,
 
impl<T> ToOwnedJsValue for Vec<T>where
    T: ToOwnedJsValue,
Implementors§
impl ToOwnedJsValue for quickjs_rusty::value::BigInt
impl ToOwnedJsValue for JsFunction
impl ToOwnedJsValue for OwnedJsPromise
impl ToOwnedJsValue for OwnedJsValue
for some cases like HashMap<String, OwnedJsValue>