wip: polish some more things
This commit is contained in:
1 parent
2d58d380be
commit
14961023f9
32 files changed
+265
-370
No files matched your search
@@ -84,7 +84,7 @@ pub enum VNode<'src> {
|
||||
/// # Example
|
||||
///
|
||||
/// ```rust, ignore
|
||||
/// fn Example(cx: Scope<()>) -> Element {
|
||||
/// fn Example(cx: Scope) -> Element {
|
||||
/// ...
|
||||
/// }
|
||||
///
|
||||
@@ -740,6 +740,12 @@ impl IntoVNode<'_> for &'static str {
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoVNode<'_> for String {
|
||||
fn into_vnode(self, cx: NodeFactory) -> VNode {
|
||||
cx.text(format_args!("{}", self))
|
||||
}
|
||||
}
|
||||
|
||||
impl IntoVNode<'_> for Arguments<'_> {
|
||||
fn into_vnode(self, cx: NodeFactory) -> VNode {
|
||||
cx.text(self)
|
||||
@@ -758,3 +764,7 @@ impl<'a> IntoVNode<'a> for &VNode<'a> {
|
||||
self.decouple()
|
||||
}
|
||||
}
|
||||
|
||||
trait IntoAcceptedVnode<'a> {
|
||||
fn into_accepted_vnode(self, cx: NodeFactory<'a>) -> VNode<'a>;
|
||||
}
|
||||
Reference in new issue
Block a user