Skip to main content

IntoOptionGetter

Trait IntoOptionGetter 

Source
pub trait IntoOptionGetter<T, M> {
    // Required method
    fn into_option_getter(self) -> OptionGetter<T>;
}
Expand description

Conversion trait for creating an OptionGetter from a closure or a signal.

Required Methods§

Source

fn into_option_getter(self) -> OptionGetter<T>

Converts the given value into an OptionGetter.

Implementors§

Source§

impl<T, F> IntoOptionGetter<T, FunctionMarker> for F
where F: Fn() -> Option<T> + Send + Sync + 'static,

Source§

impl<T, S> IntoOptionGetter<T, SignalMarker> for S
where S: Get<Value = Option<T>> + Clone + Send + Sync + 'static,