capri/path

Construct and inspect untyped Khepri paths.

Paths are structural addresses only; use capri.bind to obtain a typed repository prefix before reading or writing records. Keys may be atoms, strings, or binaries, matching the key forms supported by Capri.

Values

pub fn child(parent: types.Path, key: types.Key) -> types.Path

Append key as a direct child of parent.

Appending to Root is equivalent to from_key(key).

pub fn from_key(key: types.Key) -> types.Path

Construct a non-root path containing key.

pub fn is_root(path: types.Path) -> Bool

Return whether a path addresses the Khepri root.

Search Document