pub trait SignalExt: Signal + Sized {
// Provided methods
fn map<F, Output>(self, f: F) -> Map<Self, F, Output>
where F: 'static + Clone + Fn(Self::Output) -> Output,
Output: 'static,
Self: 'static { ... }
fn zip<B: Signal>(self, b: B) -> Zip<Self, B>
where Self::Output: Clone,
B::Output: Clone { ... }
fn computed(self) -> Computed<Self::Output>
where Self: Clone + 'static { ... }
fn with<T>(self, metadata: T) -> WithMetadata<Self, T> { ... }
fn animated(self) -> impl Signal<Output = Self::Output> { ... }
}Expand description
Extension trait providing additional methods for Signal types.
This trait adds convenient methods for transforming, combining, and working with reactive computations in a fluent interface style.
Provided Methods§
Sourcefn computed(self) -> Computed<Self::Output>where
Self: Clone + 'static,
fn computed(self) -> Computed<Self::Output>where
Self: Clone + 'static,
Converts this computation into a Computed wrapper.
This allows the computation to be cloned efficiently.
§Returns
A new Computed wrapper around this computation.
Sourcefn with<T>(self, metadata: T) -> WithMetadata<Self, T>
fn with<T>(self, metadata: T) -> WithMetadata<Self, T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.