Enum Moment
Source pub enum Moment {
Revert,
Clear,
Dismiss,
Debounce,
}
Expand description
A duration named by what it is waiting for.
Each member is a thing a reader is waiting through; the crate header says
what is left out.
How long a control shows that it did something before returning to its
resting label.
“Copied!” on a button that said “Copy link”.
How long a status line holds a message before emptying itself.
The message is a receipt for something the user just did.
How long a transient notice lives before it starts to leave.
Excludes the leaving itself, which is Motion::Fade. A notice the
user must not miss is not transient and gets no lifetime at all; see
notice_lifetime.
How long input waits to settle before the work behind it starts.
A search field that queries on every keystroke, filtered through this.
The duration as a Duration, for the renderers that are not a
browser.
The CSS custom property name, without the leading dashes.
The CSS value, in milliseconds at every rung (1500ms, never 1.5s).
Every moment, in the order they are emitted.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more
This method returns an ordering between
self and
other values if one exists.
Read more
Tests less than (for
self and
other) and is used by the
< operator.
Read more
Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more
Tests greater than (for
self and
other) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.