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). BareString/&strvalues do not compile; validate them first withPathComponent::try_neworPathComponent::encode.
Returns a structfs_core_store::Path.