@@ -44,7 +44,7 @@ pub trait LayoutChildren: 'static + Send + Sync {
4444 ///
4545 /// Implementations may conservatively return `false` when the answer would require
4646 /// materializing the child.
47- fn child_has_no_interior_splits ( & self , _idx : usize ) -> bool {
47+ fn child_divisibility ( & self , _idx : usize ) -> bool {
4848 false
4949 }
5050}
@@ -74,8 +74,8 @@ impl LayoutChildren for Arc<dyn LayoutChildren> {
7474 self . as_ref ( ) . nchildren ( )
7575 }
7676
77- fn child_has_no_interior_splits ( & self , idx : usize ) -> bool {
78- self . as_ref ( ) . child_has_no_interior_splits ( idx)
77+ fn child_divisibility ( & self , idx : usize ) -> bool {
78+ self . as_ref ( ) . child_divisibility ( idx)
7979 }
8080}
8181
@@ -119,7 +119,7 @@ impl LayoutChildren for OwnedLayoutChildren {
119119 self . 0 . len ( )
120120 }
121121
122- fn child_has_no_interior_splits ( & self , idx : usize ) -> bool {
122+ fn child_divisibility ( & self , idx : usize ) -> bool {
123123 !self . 0 [ idx] . dyn_registers_interior_splits ( )
124124 }
125125}
@@ -296,7 +296,7 @@ impl LayoutChildren for ViewedLayoutChildren {
296296 self . cache . len ( )
297297 }
298298
299- fn child_has_no_interior_splits ( & self , idx : usize ) -> bool {
299+ fn child_divisibility ( & self , idx : usize ) -> bool {
300300 if idx >= self . nchildren ( ) {
301301 return false ;
302302 }
0 commit comments