Struct ruscii::drawing::AnimationFrame
source · pub struct AnimationFrame { /* private fields */ }
Expand description
A single frame of an animation.
Implementations§
source§impl AnimationFrame
impl AnimationFrame
sourcepub fn new(text: impl Into<String>, duration: u32) -> AnimationFrame
pub fn new(text: impl Into<String>, duration: u32) -> AnimationFrame
Creates an AnimationFrame
from the given text
that lasts for the given duration
.
Trait Implementations§
source§impl Clone for AnimationFrame
impl Clone for AnimationFrame
source§fn clone(&self) -> AnimationFrame
fn clone(&self) -> AnimationFrame
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AnimationFrame
impl Debug for AnimationFrame
source§impl PartialEq<AnimationFrame> for AnimationFrame
impl PartialEq<AnimationFrame> for AnimationFrame
source§fn eq(&self, other: &AnimationFrame) -> bool
fn eq(&self, other: &AnimationFrame) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.