eachSeg (fn) {
    const len = this.segs.length
    for (let i = 0; i < len; i++) {
      const ret = fn.call(this.segs[i], i)
      if (ret === false) { break }
    }
  }
@param {module:path.PathEachSegCallback} fn
@returns {void}