move hot reloading utilities to dioxus repository
This commit is contained in:
1 parent
a42ed7d445
commit
d98821da47
5 files changed
+766
-3
No files matched your search
@@ -0,0 +1,19 @@
|
||||
pub trait HotReloadingContext {
|
||||
fn map_attribute(
|
||||
element_name_rust: &str,
|
||||
attribute_name_rust: &str,
|
||||
) -> Option<(&'static str, Option<&'static str>)>;
|
||||
fn map_element(element_name_rust: &str) -> Option<(&'static str, Option<&'static str>)>;
|
||||
}
|
||||
|
||||
pub struct Empty;
|
||||
|
||||
impl HotReloadingContext for Empty {
|
||||
fn map_attribute(_: &str, _: &str) -> Option<(&'static str, Option<&'static str>)> {
|
||||
None
|
||||
}
|
||||
|
||||
fn map_element(_: &str) -> Option<(&'static str, Option<&'static str>)> {
|
||||
None
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user