remove some old manual implementations of helpers
This commit is contained in:
1 parent
7f93263357
commit
94c0c2e5b9
3 files changed
+44
-33
No files matched your search
@@ -228,6 +228,7 @@ impl<T: 'static> Signal<T> {
|
||||
}
|
||||
|
||||
/// Creates a new global Signal that can be used in a global static.
|
||||
#[track_caller]
|
||||
pub const fn global(constructor: fn() -> T) -> GlobalSignal<T> {
|
||||
GlobalSignal::new(constructor)
|
||||
}
|
||||
@@ -235,6 +236,7 @@ impl<T: 'static> Signal<T> {
|
||||
|
||||
impl<T: PartialEq + 'static> Signal<T> {
|
||||
/// Creates a new global Signal that can be used in a global static.
|
||||
#[track_caller]
|
||||
pub const fn global_memo(constructor: fn() -> T) -> GlobalMemo<T>
|
||||
where
|
||||
T: PartialEq,
|
||||
|
||||
Reference in new issue
Block a user