moonbit

mooncakes-test
moon add tonyfettes/moonbit@0.2.0
Download zip
Version
0.2.0
License
Apache-2.0
Last updated
8 months ago
Downloads
1K
README

#username/moonbit

#
External

pub struct External {
size : UInt
}

impl Show for External
impl ToJson for External

#
External::finalizer

fn External::finalizer(self : External, object :
Pointer
[Unit]) -> Finalizer

#
External::set_finalizer

fn External::set_finalizer(self : External, object :
Pointer
[Unit], finalizer : FuncRef[(
Pointer
[Unit]) -> Unit]) -> Unit

#
Finalizer

type Finalizer

#
Finalizer::to_funcref

fn Finalizer::to_funcref(self : Finalizer) -> FuncRef[(
Pointer
[Unit]) -> Unit]

#
Meta

pub(all) enum Meta {
Regular(Regular)
RefArray(RefArray)
ValArray(ValArray)
External(External)
}

impl Show for Meta
impl ToJson for Meta

#
Meta::of_uint

fn Meta::of_uint(meta : UInt) -> Meta

#
Meta::to_uint

fn Meta::to_uint(self : Meta) -> UInt

#
Object

type Object

#
Object::meta

fn Object::meta(self : Object) -> Meta

#
Object::rc

fn Object::rc(self : Object) -> Int

#
Object::set_meta

fn Object::set_meta(self : Object, meta : Meta) -> Unit

#
Object::set_rc

fn Object::set_rc(self : Object, rc : Int) -> Unit

#
Object::to_pointer

fn Object::to_pointer(self : Object) ->
Pointer
[Unit]

#
RefArray

pub struct RefArray {
object_size_shift : UInt
len : UInt
}

impl Show for RefArray
impl ToJson for RefArray

#
Regular

pub struct Regular {
ptr_field_offset : UInt
n_ptr_fields : UInt
tag : UInt
}

impl Show for Regular
impl ToJson for Regular

#
ValArray

pub struct ValArray {
len : UInt
}

impl Show for ValArray
impl ToJson for ValArray

#
decref

fn decref(object :
Pointer
[Unit]) -> Unit

#
incref

fn incref(object :
Pointer
[Unit]) -> Unit

#
make_external_object

fn make_external_object(drop : FuncRef[(
Pointer
[Unit]) -> Unit], size : UInt64) ->
Pointer
[Unit]

#
object_header

fn object_header(object :
Pointer
[Unit]) -> Object

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io