typeway_path!() { /* proc-macro */ }Expand description
Defines a path type with auto-generated literal segment markers.
Markers are scoped in a private module to avoid name collisions.
§Syntax
ⓘ
typeway_path!(type UserPath = "users" / u32);Expands to:
ⓘ
mod __wp_UserPath {
pub struct __lit_users;
impl typeway_core::LitSegment for __lit_users { ... }
}
type UserPath = HCons<Lit<__wp_UserPath::__lit_users>, HCons<Capture<u32>, HNil>>;