Mercurial > hg
comparison rust/hg-core/src/dirstate/status.rs @ 47112:d5956136d19d
dirstate-tree: Give to `status()` mutable access to the `DirstateMap`
Differential Revision: https://phab.mercurial-scm.org/D10546
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Fri, 16 Apr 2021 12:12:04 +0200 |
parents | 623c8e4ddc6d |
children | be579775c2d9 |
comparison
equal
deleted
inserted
replaced
47111:623c8e4ddc6d | 47112:d5956136d19d |
---|---|
95 | 95 |
96 type IoResult<T> = std::io::Result<T>; | 96 type IoResult<T> = std::io::Result<T>; |
97 | 97 |
98 /// `Box<dyn Trait>` is syntactic sugar for `Box<dyn Trait, 'static>`, so add | 98 /// `Box<dyn Trait>` is syntactic sugar for `Box<dyn Trait, 'static>`, so add |
99 /// an explicit lifetime here to not fight `'static` bounds "out of nowhere". | 99 /// an explicit lifetime here to not fight `'static` bounds "out of nowhere". |
100 type IgnoreFnType<'a> = Box<dyn for<'r> Fn(&'r HgPath) -> bool + Sync + 'a>; | 100 pub type IgnoreFnType<'a> = |
101 Box<dyn for<'r> Fn(&'r HgPath) -> bool + Sync + 'a>; | |
101 | 102 |
102 /// We have a good mix of owned (from directory traversal) and borrowed (from | 103 /// We have a good mix of owned (from directory traversal) and borrowed (from |
103 /// the dirstate/explicit) paths, this comes up a lot. | 104 /// the dirstate/explicit) paths, this comes up a lot. |
104 pub type HgPathCow<'a> = Cow<'a, HgPath>; | 105 pub type HgPathCow<'a> = Cow<'a, HgPath>; |
105 | 106 |