avoid alloc
[?]
Jul 3, 2025, 2:18 PM
XZ6D3UUEHORAFR6E6NTIJAYEMNUREWPFHCR2FU7FRTHGGLUHZNVQCDependencies
- [2]
23SFYK4Qbig view refactor into a new crate - [3]
WW36JYLRadd iced_nav_scrollable widget crate - [4]
WIFVLV37nav-scrollabe: detect size to determine if needs scrolling, msg when ready - [5]
SASAN2XCuse nav-scrollable - [6]
MYGIBRRHwip custom theme
Change contents
- edit in inflorescence_view/src/diff.rs at line 97
let children_len = sections_view.len(); - edit in inflorescence_view/src/diff.rs at line 103
children_len, - replacement in inflorescence_view/src/diff.rs at line 132
// TODO: only collecting to get `ExactSizeIterator` for `iced_nav_scrollable::view`, but the size can be determined from lengths of the two vecslet diffs: Vec<_> = diffs_with_contentslet diffs = diffs_with_contents - replacement in inflorescence_view/src/diff.rs at line 139
).collect(););let diffs_len = diffs_with_contents.len() + diffs_without_contents.len(); - replacement in inflorescence_view/src/diff.rs at line 147
diffs.into_iter(),diffs,diffs_len, - replacement in iced_nav_scrollable/src/lib.rs at line 215
children: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>+ ExactSizeIterator,children: impl IntoIterator<Item = Element<'a, Message, Theme, Renderer>>,children_len: usize, - replacement in iced_nav_scrollable/src/lib.rs at line 225
debug_assert_eq!(nav.section_heights.len(), children.len(), "The `NavScrollable` was most likely initialized with a count different from the number of actual children given to the the view function. Count is {}, but got {} children", nav.section_heights.len(), children.len());debug_assert_eq!(nav.section_heights.len(), children_len, "The `NavScrollable` was most likely initialized with a count different from the number of actual children given to the the view function. Count is {}, but got {} children", nav.section_heights.len(), children_len);