Skip to main content

IntoOptionGetter

Trait IntoOptionGetter 

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§

fn into_option_getter(self) -> OptionGetter<T>

Converts the given value into an OptionGetter.

Implementations on Foreign Types§

§

impl<T> IntoOptionGetter<T, StaticMarker> for Option<T>
where T: Clone + Send + Sync + 'static,

Implementors§

§

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

§

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

Available on not (crate feature nightly and rustc_nightly).