1#![doc = include_str!("../README.md")]
2#![doc(html_logo_url = "https://avatars.githubusercontent.com/u/79236386")]
3#![doc(html_favicon_url = "https://avatars.githubusercontent.com/u/79236386")]
4
5#[macro_export]
6macro_rules! to_owned {
32 ($es:ident $(, $($rest:tt)*)?) => {
34 #[allow(unused_mut)]
35 let mut $es = $es.to_owned();
36 $( to_owned![$($rest)*] )?
37 };
38
39 ($($deref:ident).* $(, $($rest:tt)*)?) => {
42 to_owned![@ $($deref).* $(, $($rest)*)?]
43 };
44
45 ($($deref:ident)* @ $head:ident $( . $tail:ident)+ $(, $($rest:tt)*)?) => {
47 to_owned![$($deref)* $head @ $($tail).+ $(, $($rest)*)?]
48 };
49 ($($deref:ident)* @ $last:ident $(, $($rest:tt)*)? ) => {
51 #[allow(unused_mut)]
52 let mut $last = $($deref .)* $last .to_owned();
53 $(to_owned![$($rest)*])?
54 };
55}
56
57mod use_callback;
58pub use use_callback::*;
59
60mod use_on_destroy;
61pub use use_on_destroy::*;
62
63mod use_context;
64pub use use_context::*;
65
66mod use_coroutine;
67pub use use_coroutine::*;
68
69mod use_future;
70pub use use_future::*;
71
72mod use_reactive;
73pub use use_reactive::*;
74
75mod use_resource;
79pub use use_resource::*;
80
81mod use_effect;
82pub use use_effect::*;
83
84mod use_memo;
85pub use use_memo::*;
86
87mod use_root_context;
88pub use use_root_context::*;
89
90mod use_hook_did_run;
91pub use use_hook_did_run::*;
92
93mod use_signal;
94pub use use_signal::*;
95
96mod use_set_compare;
97pub use use_set_compare::*;