View Source Zig.Type protocol (zigler v0.11.0)

Summary

Functions

catch prongs to correctly perform error handling, atom is a reference to function in Zig.ErrorProng

generates make clauses in zig

beam-side type conversions that might be necessary to get an elixir parameter into a zig parameter

beam-side type conversions that might be necessary to get a zig return into an elixir return

Types

Functions

Link to this function

error_prongs(type, context)

View Source
@spec error_prongs(t(), :argument | :return) :: [{atom(), [atom()]}]

catch prongs to correctly perform error handling, atom is a reference to function in Zig.ErrorProng

@spec get_result(
  t(),
  keyword()
) :: String.t()

generates make clauses in zig

Link to this function

marshal_param(type, variable, index, platform)

View Source
@spec marshal_param(t(), Macro.t(), non_neg_integer(), :elixir | :erlang) :: Macro.t()
Link to this function

marshal_return(type, variable, platform)

View Source
@spec marshal_return(t(), Macro.t(), :elixir | :erlang) :: Macro.t()
@spec marshals_param?(t()) :: boolean()

beam-side type conversions that might be necessary to get an elixir parameter into a zig parameter

@spec marshals_return?(t()) :: boolean()

beam-side type conversions that might be necessary to get a zig return into an elixir return

@spec missing_size?(t()) :: boolean()
@spec needs_make?(t()) :: boolean()
@spec return_allowed?(t()) :: boolean()
Link to this macro

sigil_t(arg, _)

View Source (macro)
Link to this function

spec(type, context, opts)

View Source
@spec spec(t(), spec_context(), keyword()) :: Macro.t()
@spec to_call(t()) :: String.t()