impl Default for MaybeSignal (#464)

This commit is contained in:
Roland Fredenhagen 2023-02-04 16:01:55 +01:00 committed by GitHub
parent 3ff5089bf4
commit 45275ff8d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -399,6 +399,12 @@ where
Dynamic(Signal<T>),
}
impl<T: Default> Default for MaybeSignal<T> {
fn default() -> Self {
Self::Static(Default::default())
}
}
impl<T> UntrackedGettableSignal<T> for MaybeSignal<T>
where
T: 'static,