Module ffi

Source

Modules§

gc
parser
types

Structs§

ArrayObj
Bytecode
CallStackDisplay
CellElem
Cell is much cheaper than RefCell, used to store basic types
ChannelObj
CodeGenVMCtx
Used by CodeGen, so that CodeGen can share the API provided by FFI
Complex64
Complex128
FfiClosureObj
FfiCtx
FfiFactory
FieldInfo
Fields
FunctionKey
FunctionObj
FunctionObj is the direct container of the Opcode.
GosClosureObj
GosElem
GosValue
Instruction
MapObj
Meta
MetadataKey
MethodDesc
Methods
PackageKey
PackageObj
PackageObj is part of the generated Bytecode, it stores imports, consts, vars, funcs declared in a package
PanicData
PointerHandle
PointerHandle is used when converting a runtime pointer to a unsafe.Default
PrimitiveMeta
RuntimeError
SigMetadata
SliceObj
StructObj
UnderlyingFfi
UnsafePtrObj
UpValue
VMObjects
ValueDesc
WeakUpValue

Enums§

Binding4Runtime
ChannelType
ClosureObj
FuncFlag
IfaceBinding
Info about how to invoke a method of the underlying value of an interface
InterfaceObj
MetadataType
Opcode
PointerObj
There are 4 types of pointers, they point to:
UpValueState
ValueType

Traits§

AsPrimitive
CellData
Element
Element is used to store GosValue in Typed containers to save memomry
Ffi
A FFI Object implemented in Rust for Goscript to call
UnsafePtr

Functions§

debug_vec
run
Entry point

Type Aliases§

AnyElem
This can be used when any version of Slice/Array returns the same thing kind of unsafe
Elem8
Elem16
Elem32
Elem64
ElemWord
F32
F64
FunctionObjs
GosArrayObj
GosMap
GosMapIter
GosSliceObj
IRC
Map
MapIter
MetadataObjs
OpIndex
PackageObjs
RCQueue
RCount
RuntimeResult
SliceEnumIter
SliceIter
StringEnumIter
StringIter
StringObj

Attribute Macros§

async_fn
ffi_impl

Derive Macros§

Ffi
UnsafePtr