Skip to main content

path

Macro path 

Source
path!() { /* proc-macro */ }
Expand description

Build a Path from a mix of literal and runtime components.

  • String literals are split on / and each component is validated at compile time against the StructFS path grammar.
  • Integer literals become numeric components (array indexing).
  • Expressions must be of type PathComponent (runtime-validated at construction). Bare String/&str values do not compile; validate them first with PathComponent::try_new or PathComponent::encode.

Returns a structfs_core_store::Path.