use std::hash::Hash;
use super::{CommandBuffer, Component, Compositor, Container, Disposable, EventLoop};
pub trait Platform: 'static {
type ContainerID: Copy + Eq + Hash + Send;
type Container: Container<Self>;
type Component: Component<Self>;
type Compositor: Compositor<Self>;
type CommandBuffer: CommandBuffer<Self>;
type Environment;
fn with_compositor<F>(container: Self::Container, task: F) -> Disposable
where
F: FnOnce(Self::ContainerID, Self::Compositor, EventLoop) -> Disposable + Send + 'static;
}