zed/crates/workspace2/src
Nathan Sobo 5f8417249c
Return impl IntoElement in Render and RenderOnce traits (#3839)
- Returning `IntoElement` because it's more universal than `Element` and
allows us to easily return components.
- Using `impl IntoElement` in `RenderOnce` for consistency, which
requires `Component` to allocate an `AnyElement`. We use a bump
allocated arena anyway for these, and my benchmark doesn't show an
impact.


![frame-time-histogram](https://github.com/zed-industries/zed/assets/1789/d3889cca-9ebc-4d72-aa68-34a5be3bad3c)

In this histogram, frames-0 is this PR, frames-1 is main.

Release Notes:

- N/A
2024-01-03 10:37:26 -07:00
..
pane
persistence
dock.rs Merge branch 'main' into refine-render-traits 2024-01-03 12:27:42 +01:00
item.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
modal_layer.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
notifications.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
pane.rs Return impl IntoElement in Render and RenderOnce traits (#3839) 2024-01-03 10:37:26 -07:00
pane_group.rs Clean up Element API and start on docs 2023-12-31 08:33:40 -07:00
persistence.rs Remove #[allow(unused)] annotations in zed2 crates (#3798) 2023-12-25 12:23:44 +01:00
searchable.rs Enable all warnings in workspace, fix all warnings 2023-12-14 14:15:56 -08:00
shared_screen.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
status_bar.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
toolbar.rs Return impl IntoElement from Render::render trait 2024-01-02 10:09:05 -07:00
workspace2.rs Return impl IntoElement from RenderOnce::render 2024-01-02 10:27:09 -07:00
workspace_settings.rs