fmter.rs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // #[macro_use]
  2. // use dioxus_core::ifmt;
  3. // use fstrings::format_args_f;
  4. fn main() {
  5. let bump = bumpalo::Bump::new();
  6. let _b = ≎
  7. let _world = "123";
  8. // dioxus_core::ifmt!(in b; "Hello {world}";);
  9. }
  10. // let mut s = bumpalo::collections::String::new_in(b);
  11. // fstrings::write_f!(s, "Hello {world}");
  12. // dbg!(s);
  13. // let p = {
  14. // println!("hello, {}", &world);
  15. // ()
  16. // };
  17. // let g = format_args!("hello {world}", world = world);
  18. // let g = dioxus_core::ifmt!(in b, "Hello {world}");
  19. // let g = ifmt!(in b, "hhello {world}");
  20. // let g = ::core::fmt::Arguments::new_v1(
  21. // &["hello "],
  22. // &match (&world,) {
  23. // (arg0,) => [::core::fmt::ArgumentV1::new(
  24. // arg0,
  25. // ::core::fmt::Display::fmt,
  26. // )],
  27. // },
  28. // );
  29. // fn main() {
  30. // let bump = bumpalo::Bump::new();
  31. // let b = ≎
  32. // let world = "123";
  33. // let world = 123;
  34. // let g = {
  35. // use bumpalo::core_alloc::fmt::Write;
  36. // use ::dioxus_core::prelude::bumpalo;
  37. // use ::dioxus_core::prelude::format_args_f;
  38. // let bump = b;
  39. // let mut s = bumpalo::collections::String::new_in(bump);
  40. // let _ = (&mut s).write_fmt(::core::fmt::Arguments::new_v1(
  41. // &[""],
  42. // &match (&::core::fmt::Arguments::new_v1(
  43. // &["hhello "],
  44. // &match (&world,) {
  45. // (arg0,) => [::core::fmt::ArgumentV1::new(
  46. // arg0,
  47. // ::core::fmt::Display::fmt,
  48. // )],
  49. // },
  50. // ),)
  51. // {
  52. // (arg0,) => [::core::fmt::ArgumentV1::new(
  53. // arg0,
  54. // ::core::fmt::Display::fmt,
  55. // )],
  56. // },
  57. // ));
  58. // s
  59. // };
  60. // }