pub struct BaseCounter { /* private fields */ }Expand description
This is one of the Object in my library that implements the ‘Animatable’ trait. In future there will be more
Implementations§
Source§impl BaseCounter
impl BaseCounter
pub fn new( from_time: f64, to_time: f64, from: u128, to: u128, attr_to_animate: AttributesEnum, ) -> Option<BaseCounter>
pub fn is_time_valid(&self, time_ms: u128) -> Option<bool>
pub fn time_lapsed(&self, time_ms: u128) -> u128
Trait Implementations§
Source§impl Animatable for BaseCounter
impl Animatable for BaseCounter
fn animate(&self, time_ms: u128) -> Option<AnimateResponses>
fn get_attr_to_animate(&self) -> AttributesEnum
Source§impl Clone for BaseCounter
impl Clone for BaseCounter
Source§fn clone(&self) -> BaseCounter
fn clone(&self) -> BaseCounter
Returns a duplicate 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 BaseCounter
impl Debug for BaseCounter
Source§impl PartialEq for BaseCounter
impl PartialEq for BaseCounter
impl Copy for BaseCounter
impl StructuralPartialEq for BaseCounter
Auto Trait Implementations§
impl Freeze for BaseCounter
impl RefUnwindSafe for BaseCounter
impl Send for BaseCounter
impl Sync for BaseCounter
impl Unpin for BaseCounter
impl UnwindSafe for BaseCounter
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