discontinuedPackage rust_std has been discontinued and replaced by rust_core.

ancestors method

Iterable<Path> ancestors()

Implementation

Iterable<Path> ancestors() sync* {
  yield this;
  Path? current = parent().v;
  while (current != null) {
    yield current;
    current = current.parent().v;
  }
}