Dextrin.Keyword (Dextrin v0.1.0)

Copy Markdown View Source

DXN keyword (:name in value position). Wraps a plain String.t(), never an Elixir atom, for the same reason as Dextrin.Symbol: atoms are never garbage collected on the BEAM, and decoding untrusted, attacker-controlled data must never be able to exhaust the atom table.

Summary

Types

t()

@type t() :: %Dextrin.Keyword{name: String.t()}

Functions

new(name)

@spec new(String.t()) :: t()