[][src]Struct dominator_helpers::signals::DefaultSignal

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

If the provided signal is None, then a signal of the provided default otherwise, the signal's value

Implementations

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

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

Trait Implementations

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

type Item = T

Auto Trait Implementations

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

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

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

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

impl<S, T> UnwindSafe for DefaultSignal<S, T> where
    S: UnwindSafe,
    T: 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.