use dioxus_core::debug_renderer::DebugRenderer; use dioxus_core::{component::Properties, prelude::*}; fn main() -> Result<(), ()> { let p1 = SomeProps { name: "bob".into() }; let _vdom = DebugRenderer::new_with_props(Example, p1); Ok(()) } #[derive(Debug, PartialEq, Props)] struct SomeProps { name: String, } static Example: FC = |ctx| { ctx.render(html! {

"hello world!"

}) }; // #[test] #[derive(PartialEq, Clone)] struct MyStruct { a: String, } fn check_before_to_owned() { let new_str = MyStruct { a: "asd".to_string(), }; let out = town(&new_str); } fn town(t: &T) -> T::Owned { t.to_owned() }