use crate::Atom; // ===================================== // Selectors // ===================================== pub struct SelectorApi {} impl SelectorApi { pub fn get(&self, t: &'static Atom) -> &T { todo!() } } // pub struct SelectorBuilder { // _p: std::marker::PhantomData, // } // impl SelectorBuilder { // pub fn getter(self, f: impl Fn(()) -> O) -> SelectorBuilder { // todo!() // // std::rc::Rc::pin(value) // // todo!() // } // } pub struct selector(pub fn(&SelectorApi) -> O); // pub struct selector(pub fn(SelectorBuilder) -> SelectorBuilder); pub type Selector = selector;