[−][src]Enum mogwai::view::Effect
Effect
s describe a value right now or at many points in the future - or both.
Effect
s are used to change attributes, styles and inner text.
An Effect
can be created from either a single value, a Receiver
or a tuple of the
two.
Variants
A value now.
Forthcoming values, to be delivered as messages from a Receiver
.
Fields of ManyLater
later: Receiver<T>
The receiver that will deliver new values.
Both a value now and forthcoming values to be delivered as messages from a Receiver
.
Fields of OnceNowAndManyLater
Trait Implementations
impl<T: Clone> Clone for Effect<T>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> From<&'_ String> for Effect<String>
[src]
impl<'_> From<&'_ str> for Effect<String>
[src]
impl<'_> From<(&'_ str, Receiver<String>)> for Effect<String>
[src]
impl<T> From<(Option<T>, Receiver<Rc<RefCell<Option<T>>>>)> for Effect<Rc<RefCell<Option<T>>>>
[src]
impl<T> From<(T, Receiver<T>)> for Effect<T>
[src]
impl From<Effect<String>> for ViewBuilder<Text>
[src]
From
instances for ViewBuilder
.
Most of these mimic the corresponding From
instances for View
,
the rest are here for the operation of this module.
impl From<Effect<String>> for View<Text>
[src]
From instances for View
- String, str etc get converted into
View<Text>
- ie text nodes, with their initial inner text set to the input string. - Receiver
get converted into View<Text>
with their inner text initially empty and then later set by the messages sent to the receiver. - Effect
gets converted into View<Text>
with possibly an initial string and updates through the receiver. - Any raw DOM element
T
gets wrapped by a view to makeView<T>
Gizmo<C>
returns its view, aView<<C::as Component>::DomNode>
.
impl<T> From<Effect<T>> for (Option<T>, Option<Receiver<T>>)
[src]
impl<T> From<Receiver<T>> for Effect<T>
[src]
impl<T> From<T> for Effect<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Effect<T>
impl<T> !Send for Effect<T>
impl<T> !Sync for Effect<T>
impl<T> Unpin for Effect<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Effect<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<!> for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,