Crate q

Crate q 

Source
Expand description

FFI Bindings for quickjspp, a Javascript engine. See the quickjspp crate for a high-level wrapper.

Structs§

JSCFunctionListEntry
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3
JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4
JSClass
JSClassDef
JSClassExoticMethods
JSContext
JSGCObjectHeader
JSMallocFunctions
JSMallocState
JSMemoryUsage
JSModuleDef
JSObject
JSPropertyDescriptor
JSPropertyEnum
JSRefCountHeader
JSRuntime
JSSharedArrayBufferFunctions
JSValue

Constants§

JSCFunctionEnum_JS_CFUNC_constructor
JSCFunctionEnum_JS_CFUNC_constructor_magic
JSCFunctionEnum_JS_CFUNC_constructor_or_func
JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic
JSCFunctionEnum_JS_CFUNC_f_f
JSCFunctionEnum_JS_CFUNC_f_f_f
JSCFunctionEnum_JS_CFUNC_generic
JSCFunctionEnum_JS_CFUNC_generic_magic
JSCFunctionEnum_JS_CFUNC_getter
JSCFunctionEnum_JS_CFUNC_getter_magic
JSCFunctionEnum_JS_CFUNC_iterator_next
JSCFunctionEnum_JS_CFUNC_setter
JSCFunctionEnum_JS_CFUNC_setter_magic
JSPromiseStateEnum_JS_PROMISE_FULFILLED
JSPromiseStateEnum_JS_PROMISE_PENDING
JSPromiseStateEnum_JS_PROMISE_REJECTED
JS_ATOM_NULL
JS_CALL_FLAG_CONSTRUCTOR
JS_DEFAULT_STACK_SIZE
JS_DEF_ALIAS
JS_DEF_CFUNC
JS_DEF_CGETSET
JS_DEF_CGETSET_MAGIC
JS_DEF_OBJECT
JS_DEF_PROP_DOUBLE
JS_DEF_PROP_INT32
JS_DEF_PROP_INT64
JS_DEF_PROP_STRING
JS_DEF_PROP_UNDEFINED
JS_EVAL_FLAG_ASYNC
JS_EVAL_FLAG_BACKTRACE_BARRIER
JS_EVAL_FLAG_COMPILE_ONLY
JS_EVAL_FLAG_STRICT
JS_EVAL_FLAG_UNUSED
JS_EVAL_TYPE_DIRECT
JS_EVAL_TYPE_GLOBAL
JS_EVAL_TYPE_INDIRECT
JS_EVAL_TYPE_MASK
JS_EVAL_TYPE_MODULE
JS_GPN_ENUM_ONLY
JS_GPN_PRIVATE_MASK
JS_GPN_SET_ENUM
JS_GPN_STRING_MASK
JS_GPN_SYMBOL_MASK
JS_INVALID_CLASS_ID
JS_PROP_AUTOINIT
JS_PROP_CONFIGURABLE
JS_PROP_C_W_E
JS_PROP_DEFINE_PROPERTY
JS_PROP_ENUMERABLE
JS_PROP_GETSET
JS_PROP_HAS_CONFIGURABLE
JS_PROP_HAS_ENUMERABLE
JS_PROP_HAS_GET
JS_PROP_HAS_SET
JS_PROP_HAS_SHIFT
JS_PROP_HAS_VALUE
JS_PROP_HAS_WRITABLE
JS_PROP_LENGTH
JS_PROP_NORMAL
JS_PROP_NO_ADD
JS_PROP_NO_EXOTIC
JS_PROP_REFLECT_DEFINE_PROPERTY
JS_PROP_THROW
JS_PROP_THROW_STRICT
JS_PROP_TMASK
JS_PROP_VARREF
JS_PROP_WRITABLE
JS_READ_OBJ_BYTECODE
JS_READ_OBJ_REFERENCE
JS_READ_OBJ_ROM_DATA
JS_READ_OBJ_SAB
JS_TAG_BIG_INT
JS_TAG_BOOL
JS_TAG_CATCH_OFFSET
JS_TAG_EXCEPTION
JS_TAG_FIRST
JS_TAG_FLOAT64
JS_TAG_FUNCTION_BYTECODE
JS_TAG_INT
JS_TAG_MODULE
JS_TAG_NULL
JS_TAG_OBJECT
JS_TAG_STRING
JS_TAG_SYMBOL
JS_TAG_UNDEFINED
JS_TAG_UNINITIALIZED
JS_WRITE_OBJ_BSWAP
JS_WRITE_OBJ_BYTECODE
JS_WRITE_OBJ_REFERENCE
JS_WRITE_OBJ_SAB
JS_WRITE_OBJ_STRIP_DEBUG
JS_WRITE_OBJ_STRIP_SOURCE
QJS_VERSION_MAJOR
QJS_VERSION_MINOR
QJS_VERSION_PATCH
QJS_VERSION_SUFFIX

Functions§

JS_AddIntrinsicBaseObjects
JS_AddIntrinsicBigInt
JS_AddIntrinsicDate
JS_AddIntrinsicEval
JS_AddIntrinsicJSON
JS_AddIntrinsicMapSet
JS_AddIntrinsicPromise
JS_AddIntrinsicProxy
JS_AddIntrinsicRegExp
JS_AddIntrinsicRegExpCompiler
JS_AddIntrinsicTypedArrays
JS_AddIntrinsicWeakRef
JS_AddModuleExport
JS_AddModuleExportList
JS_AddPerformance
JS_AtomToCString
JS_AtomToString
JS_AtomToValue
JS_Call
JS_CallConstructor
JS_CallConstructor2
JS_ComputeMemoryUsage
JS_DefineProperty
JS_DefinePropertyGetSet
JS_DefinePropertyValue
JS_DefinePropertyValueStr
JS_DefinePropertyValueUint32
JS_DeleteProperty
JS_DetachArrayBuffer
JS_DetectModule
JS_DupAtom
JS_DupContext
JS_DupValue
Increment the refcount of this value
JS_DupValueRT
Increment the refcount of this value
JS_EnqueueJob
JS_Eval
JS_EvalFunction
JS_EvalThis
JS_ExecutePendingJob
JS_FreeAtom
JS_FreeAtomRT
JS_FreeCString
JS_FreeContext
JS_FreePropertyEnum
JS_FreeRuntime
JS_FreeValue
Decrement the refcount of this value
JS_FreeValueRT
Decrement the refcount of this value
JS_GetAnyOpaque
JS_GetArrayBuffer
JS_GetClassID
JS_GetClassProto
JS_GetContextOpaque
JS_GetException
JS_GetGCThreshold
JS_GetGlobalObject
JS_GetImportMeta
JS_GetLength
JS_GetModuleName
JS_GetModuleNamespace
JS_GetOpaque
JS_GetOpaque2
JS_GetOwnProperty
JS_GetOwnPropertyNames
JS_GetProperty
JS_GetPropertyInt64
JS_GetPropertyStr
JS_GetPropertyUint32
JS_GetPrototype
JS_GetRuntime
JS_GetRuntimeOpaque
JS_GetScriptOrModuleName
JS_GetTypedArrayBuffer
JS_GetUint8Array
JS_GetVersion
JS_HasProperty
JS_Invoke
JS_IsArray
JS_IsArrayBuffer
JS_IsBigInt
check if a JSValue is a BigInt
JS_IsBool
check if a JSValue is a Boolean
JS_IsConstructor
JS_IsEqual
JS_IsError
JS_IsException
check if a JSValue is an Exception
JS_IsExtensible
JS_IsFunction
JS_IsInstanceOf
JS_IsJobPending
JS_IsLiveObject
JS_IsNull
check if a JSValue is null
JS_IsNumber
check if a JSValue is a Number
JS_IsObject
check if a JSValue is an Object
JS_IsPromise
JS_IsRegisteredClass
JS_IsSameValue
JS_IsSameValueZero
JS_IsStrictEqual
JS_IsString
check if a JSValue is a String
JS_IsSymbol
check if a JSValue is a Symbol
JS_IsUint8Array
JS_IsUndefined
check if a JSValue is Undefined
JS_IsUninitialized
check if a JSValue is initialized
JS_JSONStringify
JS_LoadModule
JS_MarkValue
JS_NewArray
JS_NewArrayBuffer
JS_NewArrayBufferCopy
JS_NewAtom
JS_NewAtomLen
JS_NewAtomString
JS_NewAtomUInt32
JS_NewBigInt64
JS_NewBigUint64
JS_NewBool
create a new boolean value
JS_NewCFunction
create a new Function based on a JSCFunction
JS_NewCFunction2
JS_NewCFunctionData
JS_NewCFunctionMagic
create a new Function based on a JSCFunction
JS_NewCModule
JS_NewClass
JS_NewClassID
JS_NewContext
JS_NewContextRaw
JS_NewDate
JS_NewError
JS_NewFloat64
create a new f64 value, please note that if the passed f64 fits in a i32 this will return a value with flag 0 (i32)
JS_NewInt32
create a new int32 value
JS_NewNumber
JS_NewObject
JS_NewObjectClass
JS_NewObjectProto
JS_NewObjectProtoClass
JS_NewPointer
JS_NewPromiseCapability
JS_NewRuntime
JS_NewRuntime2
JS_NewSpecialValue
JS_NewStringLen
JS_NewSymbol
JS_NewUint8Array
JS_NewUint8ArrayCopy
JS_ParseJSON
JS_PreventExtensions
JS_PromiseAll
JS_PromiseAllSettled
JS_PromiseAny
JS_PromiseCatch
JS_PromiseFinally
JS_PromiseRace
JS_PromiseReject
JS_PromiseResolve
JS_PromiseResult
JS_PromiseState
JS_PromiseThen
JS_PromiseThen2
JS_PromiseWithResolvers
JS_ReadObject
JS_ResetUncatchableError
JS_ResolveModule
JS_RunGC
JS_SetCanBlock
JS_SetClassProto
JS_SetConstructor
JS_SetConstructorBit
JS_SetContextOpaque
JS_SetDumpFlags
JS_SetGCThreshold
JS_SetHostPromiseRejectionTracker
JS_SetInterruptHandler
JS_SetIsHTMLDDA
JS_SetMaxStackSize
JS_SetMemoryLimit
JS_SetModuleExport
JS_SetModuleExportList
JS_SetModuleLoaderFunc
JS_SetOpaque
JS_SetProperty
JS_SetPropertyFunctionList
JS_SetPropertyInt64
JS_SetPropertyStr
JS_SetPropertyUint32
JS_SetPrototype
JS_SetRuntimeInfo
JS_SetRuntimeOpaque
JS_SetSharedArrayBufferFunctions
JS_Throw
JS_ThrowInternalError
JS_ThrowOutOfMemory
JS_ThrowPlainError
JS_ThrowRangeError
JS_ThrowReferenceError
JS_ThrowSyntaxError
JS_ThrowTypeError
JS_ToBigInt64
JS_ToBigUint64
JS_ToBool
JS_ToCStringLen2
JS_ToFloat64
JS_ToIndex
JS_ToInt32
JS_ToInt64
JS_ToInt64Ext
JS_ToPropertyKey
JS_ToString
JS_ToUint32
get a u32 value from a JSValue
JS_UpdateStackTop
JS_VALUE_GET_BOOL
JS_VALUE_GET_FLOAT64
get a f64 value from a JSValue
JS_VALUE_GET_INT
get a i32 value from a JSValue
JS_VALUE_GET_NORM_TAG
same as JS_VALUE_GET_TAG, but return JS_TAG_FLOAT64 with NaN boxing
JS_VALUE_GET_PTR
JS_VALUE_IS_NAN
check if a JSValue is a NaN value
JS_ValueGetTag
JS_ValueToAtom
JS_WriteObject
JS_WriteObject2
__JS_FreeValue
__JS_FreeValueRT
js_free
js_free_rt
js_malloc
js_malloc_rt
js_malloc_usable_size
js_malloc_usable_size_rt
js_mallocz
js_mallocz_rt
js_realloc
js_realloc2
js_realloc_rt
js_strdup
js_string_codePointRange
js_strndup

Type Aliases§

JSAtom
JSCFunction
JSCFunctionData
JSCFunctionEnum
JSCFunctionMagic
JSClassCall
JSClassFinalizer
JSClassGCMark
JSClassID
JSFreeArrayBufferDataFunc
JSHostPromiseRejectionTracker
JSInterruptHandler
JSJobFunc
JSModuleInitFunc
JSModuleLoaderFunc
JSModuleNormalizeFunc
JSPromiseStateEnum
JS_MarkFunc
_bindgen_ty_1

Unions§

JSCFunctionListEntry__bindgen_ty_1
JSCFunctionType
JSValueUnion