janet.wrap

Undocumented in source.

Members

Functions

fromJanetString
string fromJanetString(Janet janet)

Converts a Janet string to a D string.

getFromJanet
T getFromJanet(Janet janet)

Converts from a Janet object to an object of the given type. Does absolutely no checking on its own! You must check or ensure that it will never coerce to an invalid type yourself.

janetCompatible
bool janetCompatible(Janet janet)

Returns true if the Janet argument's type is compatible with the template type. Used for type checking at runtime.

janetCompatible
bool janetCompatible(T x, Janet janet)
Undocumented in source. Be warned that the author may not have intended to support it.
janetWrap
Janet janetWrap(T x)

Wraps a D value to a Janet value. Works for a bunch of built-in types as well as structs; for classes, see register.d.

janetWrap
Janet janetWrap()
Undocumented in source. Be warned that the author may not have intended to support it.
janetWrap
Janet janetWrap(V[K] arr)

Wraps a D value to a Janet value. Works for a bunch of built-in types as well as structs; for classes, see register.d.

Meta