fix: use annotation method from rust/58052 to fix closure lifetimes
This commit is contained in:
1 parent
9ee2bfb010
commit
27d891934a
15 files changed
+333
-180
No files matched your search
@@ -32,7 +32,13 @@ use crate::innerlude::{IntoVNode, NodeFactory, VNode};
|
||||
// // inner: StackNodeStorage<'a>,
|
||||
// // inner: StackNodeStorage<'a>,
|
||||
// }
|
||||
pub type LazyNodes<'b> = Box<dyn for<'a> FnOnce(NodeFactory<'a>) -> VNode<'a> + 'b>;
|
||||
// pub type LazyNodes<'b> = Box<dyn for<'a> FnOnce(NodeFactory<'a>) -> VNode<'a> + 'b>;
|
||||
|
||||
// pub fn to_lazy_nodes<'b>(
|
||||
// f: impl for<'a> FnOnce(NodeFactory<'a>) -> VNode<'a> + 'b,
|
||||
// ) -> Option<LazyNodes<'b>> {
|
||||
// Some(Box::new(f))
|
||||
// }
|
||||
|
||||
type StackHeapSize = [usize; 12];
|
||||
|
||||
|
||||
Reference in new issue
Block a user