Finish documenting the action, asset, color, and element modules in GPUI

Remove SmallVec from the public API of GPUI
This commit is contained in:
Mikayla 2024-01-20 18:31:31 -08:00
parent 3b84291343
commit a44aae9e91
No known key found for this signature in database
23 changed files with 197 additions and 83 deletions

View file

@ -67,8 +67,8 @@ impl StoryContainer {
}
impl ParentElement for StoryContainer {
fn children_mut(&mut self) -> &mut SmallVec<[AnyElement; 2]> {
&mut self.children
fn extend(&mut self, elements: impl Iterator<Item = AnyElement>) {
self.children.extend(elements)
}
}
@ -372,7 +372,7 @@ impl RenderOnce for StorySection {
}
impl ParentElement for StorySection {
fn children_mut(&mut self) -> &mut SmallVec<[AnyElement; 2]> {
&mut self.children
fn extend(&mut self, elements: impl Iterator<Item = AnyElement>) {
self.children.extend(elements)
}
}