def StateValue.parse

bend-trace-context@0.2.0.0 · trace_context.bend:1839

import bend-trace-context@0.2.0.0/trace_context.bend as TraceContext
import Base

1839# Accept exactly a Level 2 value, leading spaces included, or fail with
1840# InvalidValue. No whitespace is trimmed here, so a trailing space is refused
1841# (laws value_parse, value_roundtrip and value_separators).
1842def StateValue.parse(+text: String) -> Result<&2, &2, EntryError, StateValue>:
1843  StateValue.parse.checked(text, StateValue.is_valid(text), {==})

Uses (6)

Used by (1)