pub struct LoadingAnimation { /* private fields */ }Expand description
加载动画组件
Implementations§
Source§impl LoadingAnimation
impl LoadingAnimation
Sourcepub fn frame_duration(self, duration: Duration) -> Self
pub fn frame_duration(self, duration: Duration) -> Self
设置动画速度
Sourcepub fn current_frame(&self) -> &str
pub fn current_frame(&self) -> &str
获取当前帧
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadingAnimation
impl RefUnwindSafe for LoadingAnimation
impl Send for LoadingAnimation
impl Sync for LoadingAnimation
impl Unpin for LoadingAnimation
impl UnsafeUnpin for LoadingAnimation
impl UnwindSafe for LoadingAnimation
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