Recast the derived data as a view that can be subdivided into views over child state.
(&'a self)
| 143 | |
| 144 | /// Recast the derived data as a view that can be subdivided into views over child state. |
| 145 | pub fn as_view<'a>(&'a self) -> DerivedView<'a> { |
| 146 | DerivedView { |
| 147 | derived: self, |
| 148 | lower: 0, |
| 149 | upper: self.results::<SubtreeSize>().len(), |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | /// The subset of a `Derived` corresponding to an expression and its children. |
no test coverage detected