Dextrin.Char (Dextrin v0.1.0)

Copy Markdown View Source

DXN char (?c) — a single Unicode codepoint. Kept distinct from a 1-grapheme String.t() so char and string (?a vs "a", two distinct DXN types) never collapse to the same Elixir value and silently fail to round-trip.

Summary

Types

t()

@type t() :: %Dextrin.Char{codepoint: non_neg_integer()}

Functions

new(codepoint)

@spec new(non_neg_integer()) :: t()