Skip to content

ErlangTerms

[Source]

Equality and hashing for a value whose static type is the ErlangTerm union.

Each term class compares with ==. ErlangTerm is a union of classes whose eq methods take different types, so == does not apply to the union. A value known only as an ErlangTerm compares through eq and hashes through hash.

primitive val ErlangTerms

Constructors

create

[Source]

new val create()
: ErlangTerms val^

Returns


Public Functions

eq

[Source]

fun box eq(
  a: ErlangTerm,
  b: ErlangTerm)
: Bool val

Parameters

Returns


hash

[Source]

fun box hash(
  term: ErlangTerm)
: USize val

Parameters

Returns


is_atom

[Source]

True when term is the atom name.

fun box is_atom(
  term: ErlangTerm,
  name: String val)
: Bool val

Parameters

Returns


ne

[Source]

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

Parameters

Returns