Function to_path

Source
pub fn to_path<T: Copy + Into<NameSeg>>(path: &[T]) -> Vec<NameSeg>
Expand description

Convert a list of segments in various formats into a path vector

assert_eq!(to_path(&[b"ABCD", b"EFGH"]), vec![NameSeg(*b"ABCD"), NameSeg(*b"EFGH")]);