[][src]Struct dominator_helpers::signals::OptionSignal

pub struct OptionSignal<S, T> where
    S: Signal<Item = T>, 
{ /* fields omitted */ }

If the provided signal is None, then a signal of None otherwise, a signal of Some(value)

Implementations

impl<S, T> OptionSignal<S, T> where
    S: Signal<Item = T>, 
[src]

pub fn new(value_signal: Option<S>) -> Self[src]

Trait Implementations

impl<S, T> Signal for OptionSignal<S, T> where
    S: Signal<Item = T> + Unpin,
    T: Unpin
[src]

type Item = Option<T>

Auto Trait Implementations

impl<S, T> RefUnwindSafe for OptionSignal<S, T> where
    S: RefUnwindSafe
[src]

impl<S, T> Send for OptionSignal<S, T> where
    S: Send
[src]

impl<S, T> Sync for OptionSignal<S, T> where
    S: Sync
[src]

impl<S, T> Unpin for OptionSignal<S, T> where
    S: Unpin
[src]

impl<S, T> UnwindSafe for OptionSignal<S, T> where
    S: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SignalExt for T where
    T: Signal + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.