Struct anim::Options[][src]

pub struct Options<T: Animatable> { /* fields omitted */ }
Expand description

options to build an Animation

Implementations

create new Options from range

animation from value

animation to value

auto reverse animation when it reaches the end; default false. Note: it will not increase the duration or repeat times.

auto_reverseeffect
falsefrom -> to
truefrom -> to -> from
👎 Deprecated

deprecated, use Options::skip() instead

play animation from the specified progress, same effect as Animation::skip()

see Animation::skip()

play animation with delay, same effect as Animation::delay(); take effect only once when the animation loops more than once.

see Animation::delay()

animation simple duration, this animation will last for how long if it plays once. default 1 second.

If Options::repeat() is specified, the animation might play more than once.

repeat behavior

your Animation repeats indefinitely

alias of Options::cycle(), see Options::repeat()

your Animation repeats indefinitely

your Animation repeats for specified times

see Options::repeat()

panics if count<=0

set ease function, default easing::linear

build Animation

build Timeline and start animation

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.