Skip to content

TermType

[Source]

The external term format tags, as defined by ei.h.

Every term on the wire starts with one of these; the decoder dispatches on it and the printer uses it to describe terms it cannot look inside.

primitive val TermType

Constructors

create

[Source]

new val create()
: TermType val^

Returns


Public Functions

none

[Source]

fun box none()
: I32 val

Returns


small_integer

[Source]

fun box small_integer()
: I32 val

Returns


integer

[Source]

fun box integer()
: I32 val

Returns


float

[Source]

fun box float()
: I32 val

Returns


new_float

[Source]

fun box new_float()
: I32 val

Returns


atom

[Source]

fun box atom()
: I32 val

Returns


small_atom

[Source]

fun box small_atom()
: I32 val

Returns


atom_utf8

[Source]

fun box atom_utf8()
: I32 val

Returns


small_atom_utf8

[Source]

fun box small_atom_utf8()
: I32 val

Returns


reference

[Source]

fun box reference()
: I32 val

Returns


new_reference

[Source]

fun box new_reference()
: I32 val

Returns


newer_reference

[Source]

fun box newer_reference()
: I32 val

Returns


port

[Source]

fun box port()
: I32 val

Returns


new_port

[Source]

fun box new_port()
: I32 val

Returns


v4_port

[Source]

fun box v4_port()
: I32 val

Returns


pid

[Source]

fun box pid()
: I32 val

Returns


new_pid

[Source]

fun box new_pid()
: I32 val

Returns


small_tuple

[Source]

fun box small_tuple()
: I32 val

Returns


large_tuple

[Source]

fun box large_tuple()
: I32 val

Returns


nil

[Source]

fun box nil()
: I32 val

Returns


string

[Source]

fun box string()
: I32 val

Returns


list

[Source]

fun box list()
: I32 val

Returns


binary

[Source]

fun box binary()
: I32 val

Returns


bit_binary

[Source]

fun box bit_binary()
: I32 val

Returns


small_big

[Source]

fun box small_big()
: I32 val

Returns


large_big

[Source]

fun box large_big()
: I32 val

Returns


new_fun

[Source]

fun box new_fun()
: I32 val

Returns


map

[Source]

fun box map()
: I32 val

Returns


erl_fun

[Source]

fun box erl_fun()
: I32 val

Returns


erl_export

[Source]

fun box erl_export()
: I32 val

Returns


is_atom

[Source]

fun box is_atom(
  type_tag: I32 val)
: Bool val

Parameters

  • type_tag: I32 val

Returns


name

[Source]

A readable name for a type tag, for diagnostics.

fun box name(
  type_tag: I32 val)
: String val

Parameters

  • type_tag: I32 val

Returns


eq

[Source]

fun box eq(
  that: TermType val)
: Bool val

Parameters

Returns


ne

[Source]

fun box ne(
  that: TermType val)
: Bool val

Parameters

Returns