emacs_module.env

Undocumented in source.

Members

Aliases

maxArity
alias maxArity = arity

Returns the maximum arity among func overloads within its module.

Functions

fromEmacsValue
inout(emacs_value) fromEmacsValue(const(EmacsEnv) env, inout(emacs_value) value)

Type conversion. These shouldn't be methods in EmacsEnv because makeFunction can wrap only function NOT delegate, which captures this. TODO(karita): Support embedded pointer type. Converts emacs_value to emacs_value.

fromEmacsValue
intmax_t fromEmacsValue(EmacsEnv env, emacs_value value)

Converts emacs_value to intmax_t.

fromEmacsValue
double fromEmacsValue(EmacsEnv env, emacs_value value)

Converts emacs_value to double.

fromEmacsValue
bool fromEmacsValue(EmacsEnv env, emacs_value value)

Converts emacs_value to bool. Note that all non-nil values are true.

fromEmacsValue
string fromEmacsValue(EmacsEnv env, emacs_value ev)

Converts string to emacs_value.

fromEmacsValue
EmacsVec!T fromEmacsValue(EmacsEnv env, emacs_value value)

Converts emacs_value to EmacsVec!T.

toEmacsValue
inout(emacs_value) toEmacsValue(const(EmacsEnv) env, inout(emacs_value) value)

Type conversion. These shouldn't be methods in EmacsEnv because makeFunction can wrap only function NOT delegate, which captures this. TODO(karita): Support embedded pointer type. Converts emacs_value to emacs_value.

toEmacsValue
emacs_value toEmacsValue(EmacsEnv env, intmax_t value)

Converts intmax_t to emacs_value.

toEmacsValue
emacs_value toEmacsValue(EmacsEnv env, double value)

Converts double to emacs_value.

toEmacsValue
emacs_value toEmacsValue(EmacsEnv env, bool value)

Converts bool to emacs_value.

toEmacsValue
emacs_value toEmacsValue(const(EmacsEnv) env, V value)

Converts EmacsVec!T to emacs_value.

toEmacsValue
emacs_value toEmacsValue(EmacsEnv env, string value)

Converts emacs_value to string.

Structs

EmacsEnv
struct EmacsEnv

High-level wrapper type for emacs_env;

EmacsVec
struct EmacsVec(T = emacs_value)

Emacs vector type.

NonLocalExit
struct NonLocalExit

Return value of EmacsEnv.nonLocalExit.

Meta