This commit is contained in:
Greg Johnston 2023-01-06 11:36:46 -05:00
parent 96418ed684
commit dfba1d9656

View file

@ -54,6 +54,16 @@ use std::fmt::Debug;
/// });
/// # }).dispose();
/// ```
#[cfg_attr(
debug_assertions,
instrument(
level = "trace",
skip_all,
fields(
cx = %format!("{:?}", cx.id),
)
)
)]
pub fn create_memo<T>(cx: Scope, f: impl Fn(Option<&T>) -> T + 'static) -> Memo<T>
where
T: PartialEq + Debug + 'static,