fn init(path: []const T) InitError!Self

After init, next will return the first component after the root (there is no need to call first after init). To iterate backwards (from the end of the path to the beginning), call last after init and then iterate via previous calls. For Windows paths, error.BadPathName is returned if the path has an explicit namespace prefix (\\.\, \\?\, or \??\) or if it is a UNC path with more than two path separators at the beginning.

Parameters

path: []const T,