pub enum RetainPolicy {
Keep,
DropWhenSettled,
}Expand description
Controls whether the runtime retains an animation after it settles.
Variants§
Keep
Keep the animation and its final value until explicitly removed.
DropWhenSettled
Remove the animation after it completes or is canceled.
Trait Implementations§
Source§impl Clone for RetainPolicy
impl Clone for RetainPolicy
Source§fn clone(&self) -> RetainPolicy
fn clone(&self) -> RetainPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RetainPolicy
Source§impl Debug for RetainPolicy
impl Debug for RetainPolicy
Source§impl Default for RetainPolicy
impl Default for RetainPolicy
Source§fn default() -> RetainPolicy
fn default() -> RetainPolicy
Returns the “default value” for a type. Read more
impl Eq for RetainPolicy
Source§impl PartialEq for RetainPolicy
impl PartialEq for RetainPolicy
Source§fn eq(&self, other: &RetainPolicy) -> bool
fn eq(&self, other: &RetainPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RetainPolicy
Auto Trait Implementations§
impl Freeze for RetainPolicy
impl RefUnwindSafe for RetainPolicy
impl Send for RetainPolicy
impl Sync for RetainPolicy
impl Unpin for RetainPolicy
impl UnsafeUnpin for RetainPolicy
impl UnwindSafe for RetainPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more