Trait leptos_reactive::IntoSignal
source · pub trait IntoSignal: Sized {
type Value;
// Required methods
fn derive_signal(self) -> Signal<Self::Value>;
fn into_signal(self) -> Signal<Self::Value>;
}
Expand description
Helper trait for converting Fn() -> T
closures into
Signal<T>
.
Required Associated Types§
Required Methods§
sourcefn derive_signal(self) -> Signal<Self::Value>
👎Deprecated: Will be removed in leptos v0.6
. Please use IntoSignal::into_signal()
instead.
fn derive_signal(self) -> Signal<Self::Value>
leptos v0.6
. Please use IntoSignal::into_signal()
instead.Consumes self
, returning a Signal<T>
.
sourcefn into_signal(self) -> Signal<Self::Value>
fn into_signal(self) -> Signal<Self::Value>
Consumes self
, returning a Signal<T>
.
Object Safety§
This trait is not object safe.