Macro vector_lookup::owned_value_path

macro_rules! owned_value_path {
    ($($segment:expr),*) => { ... };
}
Expand description

Syntactic sugar for creating a pre-parsed owned path.

This allocates and will be slower than using path!. Prefer that when possible. The return value must be borrowed to get a value that implements Path.

Example: owned_value_path!("foo", 4, "bar") is the pre-parsed path of foo[4].bar