Commit 59148a2
committed
feat: add
Previously, the only way to create a `Builder` would be via
`Builder::from_iters`. That fn takes as arguments both the tips and
ends, and used to be the only possibility for specifying either of them
during the building process. However, in order to enhance the builder-
likeness of `Builder`, we recently introduced fns `with_tips` and
`with_ends` for adding additional tips and ends.
With those fns, the only component which needs to be supplied up-front
is `find`. Users can specify and empty `Iterator` and `None` for `tips`
and `ends` respectively when calling `Builder::from_iters` and add
additional tips and ends at their leisure, without the need to chain
`Iterator`s or collecting them in some external data structure.
Now, calling `Builder::from_iters` with a empty lists for tips and ends
is a bit awkward. Thus, we provide a new method for creating a bare
`Builder`.topo::Builder::new fn for creating a bare builder1 parent a7a8d7c commit 59148a2
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
47 | 61 | | |
48 | 62 | | |
49 | 63 | | |
| |||
0 commit comments