pub fn as_path<'a>(lookup: &'a str) -> (Option<Vec<&'a str>>, &'a str)
Expand description

Creates a possible path from a dot-seperated string

Returns path, and final symbol Eg: ‘items.bag.coins’ becomes -> (Some(Vec[‘items’,‘bag’]), ‘coins’)