Method
fetch_inherited_property
(
&self,
getter: fn(&'a NodeData) -> Option<T>,
)
Source from the content-addressed store, hash-verified
| 515 | } |
| 516 | |
| 517 | pub(crate) fn fetch_inherited_property<T>( |
| 518 | &self, |
| 519 | getter: fn(&'a NodeData) -> Option<T>, |
| 520 | ) -> Option<T> { |
| 521 | let mut node = *self; |
| 522 | loop { |
| 523 | let value = getter(node.data()); |
| 524 | if value.is_some() { |
| 525 | return value; |
| 526 | } |
| 527 | node = node.parent()?; |
| 528 | } |
| 529 | } |
| 530 | |
| 531 | pub(crate) fn fetch_inherited_flag(&self, getter: fn(&'a NodeData) -> bool) -> bool { |
| 532 | let mut node = *self; |
Callers
nothing calls this directly
Tested by
no test coverage detected