pub fn encode(segments: &[String]) -> Expr
Encodes the path segments as an Expr::List of strings.
Expr::List