capri/path

Types

pub type Key {
  Atom(atom.Atom)
  String(String)
  Binary(BitArray)
}

Constructors

  • Atom(atom.Atom)
  • String(String)
  • Binary(BitArray)
pub type Path {
  Path(Subpath)
  Root
}

Constructors

pub type Subpath {
  Segment(Key, Subpath)
  Target(Key)
}

Constructors

Values

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

Append child to a path.

pub fn from_key(key: Key) -> Path

Construct a one-component path.

pub fn is_root(path: Path) -> Bool
Search Document