pub struct AnimationFrame {
    pub content: StyledString,
    pub next_frame_idx: usize,
}
Expand description

This struct represents the content of a single loading or error animation frame, produced by a animation function of the AsyncView. Read the documentation of the default_animation or default_error to see how to implement your own animation functions.

Fields

content: StyledString

A StyledString that will be displayed inside a TextView for this frame.

next_frame_idx: usize

The next frame_idx passed to the animation function when calculating the next frame.

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.

Calls the given closure and return the result. Read more

Calls the given closure on self.

Calls the given closure on self.

Calls the given closure if condition == true.