Struct frappe::SignalFn [] [src]

pub struct SignalFn<T>(_);

A signal that generates it's values from a function.

This is produced by Signal::map

Methods

impl<T> SignalFn<T>
[src]

Creates a signal that samples it's values from the supplied function.

Trait Implementations

impl<T: Clone> Clone for SignalFn<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Clone + 'static> Signal<T> for SignalFn<T>
[src]

Sample by value. Read more

Sample by reference. Read more

Maps a signal with the provided function.

Samples the value of this signal every time the trigger stream fires.

Creates a new signal that samples the inner value of a nested signal.

impl<T> Debug for SignalFn<T>
[src]

Formats the value using the given formatter.