Skip to main content

Module path

Module path 

Source
Expand description

Broadcast paths and the prefixes that grant them.

Path is a literal coordinate: /-separated non-empty segments, with segment-aware prefix operations. A \ escapes the \ or / after it, so a\/b is one segment holding a /; parts is the one walk every segment reading goes through. Prefixes is a grant or an origin scope: a set of Prefixes, each covering its whole subtree.

Structs§

Parts
The iterator parts returns, walking from either end.
Path
A broadcast path that provides safe prefix matching operations.
Prefix
One member of a grant: a path, covering itself and every path beneath it.
Prefixes
A grant: a set of prefixes, reduced so no member lies beneath another.
Relative
A relative broadcast path, used to reference one broadcast from another broadcast’s content.

Enums§

Error
Why a string is not a valid Path or Relative.
InvalidPrefix
Why a string is not a valid Prefix.

Functions§

escape
The segment holding content: each \ or / escaped by a \. The inverse of unescape.
parts
The segments of path, split only at a / no escape covers and still escaped as written.
unescape
A segment’s content: each escaped \ or / as the byte itself.