ZIm/crates/ui2/src/children.rs
2023-10-12 10:40:47 -04:00

7 lines
205 B
Rust

use std::any::Any;
use gpui3::{AnyElement, ViewContext};
pub type HackyChildren<S> = fn(&mut ViewContext<S>, &dyn Any) -> Vec<AnyElement<S>>;
pub type HackyChildrenPayload = Box<dyn Any + Send + Sync>;