View Source API Reference Syrup v0.4.0
Modules
A Syrup parser and generator in pure Elixir.
Utilities for encoding elixir values to Syrup.
Errors arising from encoding values to Syrup.
Protocol controlling how a value is encoded to Syrup.
A record is a labeled tuple representing an Elixir struct.
A struct that forces encoding a binary as a Syrup binary, even if the Elixir binary is valid UTF-8.
This struct is used by the Syrup.as_binary
function.
A struct that forces encoding a tuple as a Syrup record. The first element of the tuple must be an atom or a Syrup.Types.Symbol
struct representing the record type.
This struct is used by the Syrup.as_record
function.
A struct that forces encoding a binary as a Syrup string unless it is not a valid UTF-8 sequence.
Invalid UTF-8 binaries are always encoded as Syrup binaries. This struct is used by the Syrup.as_string
function.
A struct that represents a Syrup symbol.
This struct is used by the Syrup.as_symbol
function to force representation of a binary as a symbol.
This struct is used by the Syrup.Decoder
to represent a symbol without forcing creation of an Elixir atom.