View Source Syrup.Encode (Syrup v0.4.0)

Utilities for encoding elixir values to Syrup.

Summary

Types

opts()

@opaque opts()

Functions

atom(atom)

@spec atom(atom() | binary()) :: iodata()

binary!(binary, opts \\ [])

float(float, opts \\ [])

@spec float(
  float(),
  keyword()
) :: iodata()

integer(integer)

@spec integer(integer()) :: iodata()

keyword(keywords, opts \\ [])

@spec keyword(keyword(), keyword()) :: iodata()

list(list, opts \\ [])

@spec list(
  list(),
  keyword()
) :: iodata()

map(map, opts \\ [])

@spec map(
  map(),
  keyword()
) :: iodata()

record(tuple, opts \\ [])

@spec record(tuple(), any()) :: iodata()

set(set, opts \\ [])

@spec set(
  MapSet.t(),
  keyword()
) :: iodata()

string(binary, opts \\ [])

@spec string(
  binary(),
  keyword()
) :: iodata()

string!(binary, opts \\ [])