fn realloc(&mut self, elements_count: ElementId, texts_count: TextId) {
        assert!(elements_count > 0);

        self.children.resize_with(elements_count, || Vec::new());

        self.text_layout.realloc(texts_count);
        self.box_layout.realloc(elements_count, texts_count);
        self.renderer.realloc(elements_count, texts_count);
    }
// making systems "resizable" simplifies a lot of things
// notably there's no need to return anything, ids are shared
// across the whole viewport and freelists are also needed just here
making systems "resizable" simplifies a lot of things
notably there's no need to return anything, ids are shared
across the whole viewport and freelists are also needed just here
making systems " resizable " simplifies a lot of things notably there ' s no need to return anything ids are shared across the whole viewport and freelists are also needed just here
fn realloc(&mut self, elements_count: ElementId, texts_count: TextId) {
        assert!(elements_count > 0);
        self.children.resize_with(elements_count, || Vec::new());
        self.text_layout.realloc(texts_count);
        self.box_layout.realloc(elements_count, texts_count);
        self.renderer.realloc(elements_count, texts_count);
    }
fn realloc ( & mut self , elements_count : ElementId , texts_count : TextId ) { assert ! ( elements_count 0 ) ; self . children . resize_with ( elements_count , | | Vec :: new ( ) ) ; self . text_layout . realloc ( texts_count ) ; self . box_layout . realloc ( elements_count , texts_count ) ; self . renderer . realloc ( elements_count , texts_count ) ; }
making systems "resizable" simplifies a lot of things
notably there's no need to return anything, ids are shared
across the whole viewport and freelists are also needed just here
making systems " resizable " simplifies a lot of things notably there ' s no need to return anything ids are shared across the whole viewport and freelists are also needed just here
&mut self
elements_count
ElementId
texts_count
TextId
&mut self
elements_count
ElementId
texts_count
TextId