host

package
v0.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CLASSES = make(map[string]reflect.Type)

Functions

func SetFieldTo

func SetFieldTo(field reflect.Value, input interface{}) error

func String

func String(s string) *string

Types

type Host

type Host struct {
	// contains filtered or unexported fields
}

func NewHost

func NewHost(polar ffi.PolarFfi) Host

func (Host) CacheClass

func (h Host) CacheClass(cls reflect.Type, name string, constructor reflect.Value) error

func (Host) CallFunction added in v0.0.5

func (h Host) CallFunction(fn reflect.Value, termArgs []types.Term) ([]reflect.Value, error)

func (Host) Copy

func (h Host) Copy() Host

func (Host) IsSubclass

func (h Host) IsSubclass(leftTag string, rightTag string) (bool, error)

func (Host) IsSubspecializer

func (h Host) IsSubspecializer(instanceID int, leftTag string, rightTag string) (bool, error)

func (Host) Isa

func (h Host) Isa(value types.Term, classTag string) (bool, error)

func (Host) ListToGo

func (h Host) ListToGo(v []types.Term) ([]interface{}, error)

func (Host) MakeInstance added in v0.0.5

func (h Host) MakeInstance(call types.ValueCall, id uint64) error

func (Host) ToGo

func (h Host) ToGo(v types.Term) (interface{}, error)

func (Host) ToPolar

func (h Host) ToPolar(v interface{}) (*Value, error)

func (Host) Unify

func (h Host) Unify(leftID uint64, rightID uint64) (bool, error)

type None

type None struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL