Trait fetsig::SignalExtMapOption
source · pub trait SignalExtMapOption<T> {
// Required methods
fn map_some<F, U>(self, f: F) -> MapSome<Self, T, F, U>
where Self: Sized,
F: FnMut(&T) -> U;
fn map_some_default<F, U>(self, f: F) -> MapSomeDefault<Self, T, F, U>
where Self: Sized,
F: FnMut(&T) -> U,
U: Default;
fn and_then_some<F, U>(self, f: F) -> AndThenSome<Self, T, F, U>
where Self: Sized,
F: FnMut(&T) -> Option<U>;
fn unwrap_or_default(self) -> UnwrapOrDefault<Self, T>
where Self: Sized,
T: Default;
}